mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: problem: fix problemId display
This commit is contained in:
1 parent
08e41a8ae8
commit
204dfd6efc
1 file changed
+3
-3
@@ -6,11 +6,11 @@
|
|||||||
<a href="{{ url('problem_detail', _linkArgs) }}"{% if small %} data-tooltip="{{ pdoc.title }}"{% endif %}>
|
<a href="{{ url('problem_detail', _linkArgs) }}"{% if small %} data-tooltip="{{ pdoc.title }}"{% endif %}>
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
{%- if pdoc.domainId !== handler.args.domainId -%}<b>{{ pdoc.domainId }}#</b>{%- endif -%}
|
{%- if pdoc.domainId !== handler.args.domainId -%}<b>{{ pdoc.domainId }}#</b>{%- endif -%}
|
||||||
{% if page_name == 'contest_problemlist' and tdoc %}
|
{%- if page_name == 'contest_problemlist' and tdoc -%}
|
||||||
<b>{{ String.fromCharCode(65 + tdoc.pids.indexOf(pdoc.docId)) if tdoc.pids.includes(pdoc.docId) else '#' }}</b>
|
<b>{{ String.fromCharCode(65 + tdoc.pids.indexOf(pdoc.docId)) if tdoc.pids.includes(pdoc.docId) else '#' }}</b>
|
||||||
{% else %}
|
{%- else -%}
|
||||||
<b>{{ pdoc.pid or ('P'+pdoc.docId if pdoc.domainId === handler.args.domainId else pdoc.docId) }}</b>
|
<b>{{ pdoc.pid or ('P'+pdoc.docId if pdoc.domainId === handler.args.domainId else pdoc.docId) }}</b>
|
||||||
{% endif %}
|
{%- endif -%}
|
||||||
{%- if not small -%} {{ pdoc.title }}{%- endif -%}
|
{%- if not small -%} {{ pdoc.title }}{%- endif -%}
|
||||||
{%- if not invalid -%}
|
{%- if not invalid -%}
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
Reference in new issue
Block a user