core&ui: contest navigation improvements

This commit is contained in:
undefined committed 2025-12-21 20:37:10 +08:00
1 parent 5f1da6234e
commit 994132e51e
5 files changed
+12 -7

No files matched your search

@@ -63,15 +63,16 @@
</button>
</form>
{% endif %}
{%- if not tdoc or tdoc.pids|length > 1 -%}
{%- if tdoc -%}
{{ utils.getAlphabeticId(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 }}
{%- endif -%}. {% endif %}{{ pdoc.title }}
</h1>
{% if tdoc and tdoc.pids|length <= 26 %}
{% if tdoc and tdoc.pids|length <= 26 and tdoc.pids|length > 1 %}
<div class="section__tools contest-problems">
{% for pid in tdoc.pids -%}
{% set status = tsdoc.detail[pid].status %}