core&ui: enhanced category selector

This commit is contained in:
undefined committed 2022-05-11 21:54:21 +08:00
1 parent 74f4e44f0f
commit 6567c739b6
12 files changed
+45 -54

No files matched your search

@@ -21,7 +21,7 @@
{%- 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_category', category=tag) }}">{{ tag }}</a></li>
<li class="problem__tag"><a class="problem__tag-link" href="{{ url('problem_main', query={q:'category:'+tag}) }}">{{ tag }}</a></li>
{%- endfor -%}
{%- if not inline %}</ul>{% endif -%}
{%- else -%}