ui: optimize problemId display

This commit is contained in:
undefined committed 2024-10-22 07:07:29 +08:00
1 parent 29b970e991
commit 7d9df55d09
3 files changed
+15 -10

No files matched your search

@@ -45,7 +45,13 @@
</button>
</form>
{% endif %}
#{{ String.fromCharCode(65+tdoc.pids.indexOf(pdoc.docId)) if tdoc else pdoc.pid|default(pdoc.docId) }}. {{ pdoc.title }}
{%- if tdoc -%}
{{ String.fromCharCode(65+tdoc.pids.indexOf(pdoc.docId)) }}
{%- elif pdoc.pid and pdoc.pid.includes('-') -%}
{{ pdoc.pid.split('-').join('#') }}
{%- else -%}
#{{ pdoc.pid|default(pdoc.docId) }}
{%- endif -%}. {{ pdoc.title }}
</h1>
{% if tdoc and tdoc.pids|length <= 26 %}
<div class="section__tools contest-problems">