mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: pass pdoc with UiContext
This commit is contained in:
1 parent
ec83da1080
commit
19e14fc90f
7 files changed
+23
-26
No files matched your search
@@ -9,7 +9,8 @@
|
||||
postPretestUrl: url('problem_pretest', pid=pdoc.docId),
|
||||
pretestConnUrl: "/conn/pretest?pid=" + pdoc.pid|default(pdoc.docId) + "&domainId=" + handler.domainId,
|
||||
codeLang: handler.user.codeLang,
|
||||
codeTemplate: handler.user.codeTemplate
|
||||
codeTemplate: handler.user.codeTemplate,
|
||||
pdoc: pdoc
|
||||
}) }}
|
||||
{% if tdoc %}
|
||||
{{ set(UiContext, 'postSubmitUrl', url('contest_detail_problem_submit' if tdoc.docType == model.document.TYPE_CONTEST else 'homework_detail_problem_submit', pid=pdoc.docId, tid=tdoc.docId)) }}
|
||||
|
||||
Reference in new issue
Block a user