mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: fix problemId display
This commit is contained in:
1 file changed
+1
-1
@@ -8,7 +8,7 @@
|
|||||||
{%- if tdoc and alphabetic -%}
|
{%- if tdoc and alphabetic -%}
|
||||||
<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.split('-')[1] if pdoc.pid else ('P'+pdoc.docId) }}</b>
|
<b>{{ (pdoc.pid.split('-')[1] if pdoc.pid.includes('-') else pdoc.pid) if pdoc.pid else ('P'+pdoc.docId) }}</b>
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
{%- if not small -%} {{ pdoc.title }}{%- endif -%}
|
{%- if not small -%} {{ pdoc.title }}{%- endif -%}
|
||||||
{%- if not invalid -%}
|
{%- if not invalid -%}
|
||||||
|
|||||||
Reference in new issue
Block a user