mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: problem tag display fix
This commit is contained in:
1 parent
e2bbaec0e3
commit
37822f0025
2 files changed
+3
-3
No files matched your search
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@hydrooj/ui-default",
|
"name": "@hydrooj/ui-default",
|
||||||
"version": "4.19.3",
|
"version": "4.19.4",
|
||||||
"author": "undefined <i@undefined.moe>",
|
"author": "undefined <i@undefined.moe>",
|
||||||
"license": "AGPL-3.0",
|
"license": "AGPL-3.0",
|
||||||
"main": "hydro.js",
|
"main": "hydro.js",
|
||||||
|
|||||||
@@ -25,11 +25,11 @@
|
|||||||
|
|
||||||
{% macro render_problem_tags(pdoc, show_none_label=false, inline=false) %}
|
{% macro render_problem_tags(pdoc, show_none_label=false, inline=false) %}
|
||||||
{%- if pdoc.tag|length > 0 %}
|
{%- if pdoc.tag|length > 0 %}
|
||||||
{%- if inline %}<ul class="problem__tags">{% endif -%}
|
{%- if not inline %}<ul class="problem__tags">{% endif -%}
|
||||||
{%- for tag in pdoc['tag'] %}
|
{%- 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_category', category=tag) }}">{{ tag }}</a></li>
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
{%- if inline %}</ul>{% endif -%}
|
{%- if not inline %}</ul>{% endif -%}
|
||||||
{%- else %}
|
{%- else %}
|
||||||
{%- if show_none_label %}
|
{%- if show_none_label %}
|
||||||
{{ _('(None)') }}
|
{{ _('(None)') }}
|
||||||
|
|||||||
Reference in new issue
Block a user