mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 17:36:08 +08:00
ui: fix #850
This commit is contained in:
1 file changed
+2
-1
@@ -25,7 +25,8 @@
|
||||
{%- if pdoc.tag|length > 0 %}
|
||||
{%- if not inline %}<ul class="problem__tags">{% endif -%}
|
||||
{%- for tag in pdoc['tag'] %}
|
||||
<li class="problem__tag"><a class="problem__tag-link" href="{{ url('problem_main', query={q:'category:'+tag}) }}">{{ tag }}</a></li>
|
||||
{% set _w = '"' if tag.includes(' ') else '' %}
|
||||
<li class="problem__tag"><a class="problem__tag-link" href="{{ url('problem_main', query={q:'category:'+_w+tag+_w}) }}">{{ tag }}</a></li>
|
||||
{%- endfor -%}
|
||||
{%- if not inline %}</ul>{% endif -%}
|
||||
{%- else -%}
|
||||
|
||||
Reference in new issue
Block a user