core: use alpha-indexed id in contest

This commit is contained in:
undefined committed 2021-05-29 12:29:03 +08:00
1 parent 8852aa149b
commit 800b332c8b
8 files changed
+39 -33

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@hydrooj/ui-default",
"version": "4.11.0",
"version": "4.11.1",
"author": "undefined <i@undefined.moe>",
"license": "AGPL-3.0",
"main": "hydro.js",
@@ -2,15 +2,15 @@
{%- if not invalid %}
<a
{%- if tdoc and tdoc.docType == model.document.TYPE_CONTEST %}
href="{{ url('contest_detail_problem', tid=tdoc.docId, pid=pdoc.docId) }}"
href="{{ url('contest_detail_problem', tid=tdoc.docId, pid=pdoc.pid) }}"
{%- elif tdoc and tdoc.docType == model.document.TYPE_HOMEWORK %}
href="{{ url('homework_detail_problem', tid=tdoc.docId, pid=pdoc.docId) }}"
href="{{ url('homework_detail_problem', tid=tdoc.docId, pid=pdoc.pid) }}"
{%- else %}
href="{{ url('problem_detail', pid=pdoc.pid|default(pdoc.docId)) }}"
{%- endif %}
>
{%- endif %}
{{ pdoc.pid if pdoc.pid else 'P'+pdoc.docId }} {{ pdoc.title }}
{{ pdoc.pid if pdoc.pid else 'P'+pdoc.docId }}. {{ pdoc.title }}
{%- if not invalid %}
</a>
{%- endif %}
@@ -57,7 +57,6 @@
{% endif %}
{% endif %}
<td class="col--problem col--problem-name">
#{{ loop.index }}:
{{ problem.render_problem_title(pdict[pid], tdoc=tdoc, show_invisible_flag=false, show_tags=false) }}
</td>
</tr>