mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 17:36:08 +08:00
core: update contest path
This commit is contained in:
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 %}
|
||||
|
||||
Reference in new issue
Block a user