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

@@ -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 %}