mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 17:36:08 +08:00
ui: remove no-heading mark & pdoc-inline-render
This commit is contained in:
1 parent
ff7adf0937
commit
e2bbaec0e3
8 files changed
+22
-16
No files matched your search
@@ -1,4 +1,4 @@
|
||||
{% macro render_problem_title(pdoc, tdoc=none, show_tags=true, show_invisible_flag=true, invalid=false) %}
|
||||
{% macro render_problem_title(pdoc, tdoc=none, show_tags=true, show_invisible_flag=true, invalid=false, inline=false) %}
|
||||
{%- if not invalid %}
|
||||
<a
|
||||
{% if tdoc -%}
|
||||
@@ -19,17 +19,17 @@
|
||||
<span class="text-orange">({{ _('Hidden') }})</span>
|
||||
{%- endif %}
|
||||
{%- if show_tags %}
|
||||
{{ render_problem_tags(pdoc) }}
|
||||
{{ render_problem_tags(pdoc, inline=inline) }}
|
||||
{%- endif %}
|
||||
{% endmacro %}
|
||||
|
||||
{% macro render_problem_tags(pdoc, show_none_label=false) %}
|
||||
{% macro render_problem_tags(pdoc, show_none_label=false, inline=false) %}
|
||||
{%- if pdoc.tag|length > 0 %}
|
||||
<ul class="problem__tags">
|
||||
{%- if 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>
|
||||
{%- endfor %}
|
||||
</ul>
|
||||
{%- if inline %}</ul>{% endif -%}
|
||||
{%- else %}
|
||||
{%- if show_none_label %}
|
||||
{{ _('(None)') }}
|
||||
|
||||
Reference in new issue
Block a user