core: update contest path

This commit is contained in:
undefined committed 2021-10-25 15:26:14 +08:00
1 parent 3b6b6e3c17
commit 42b73f36a4
22 files changed
+131 -448

No files matched your search

@@ -2,10 +2,7 @@
{%- if not invalid %}
<a
{% if tdoc -%}
href="{{ url(
'contest_detail_problem' if tdoc.docType == model.document.TYPE_CONTEST else 'homework_detail_problem',
tid=tdoc.docId, pid=parseContestProblemId(pdoc, tdoc)
) }}"
href="{{ url('problem_detail', pid=pdoc.pid|default(pdoc.docId), query={tid:tdoc.docId}) }}"
{%- else -%}
href="{{ url('problem_detail', pid=pdoc.pid|default(pdoc.docId)) }}"
{%- endif %}