core: 修复contest_record题号显示错误的问题

This commit is contained in:
undefined committed 2021-07-03 16:20:38 +08:00
1 parent 82e33ac958
commit 74cd467bfa
6 files changed
+21 -9

No files matched your search

@@ -13,7 +13,9 @@
</button> |
</form>
{% endif %}
{% if pdoc and (not pdoc.hidden or handler.user.hasPerm(perm.PERM_VIEW_PROBLEM_HIDDEN) or handler.user.own(pdoc)) %}
{% if pdoc and rdoc.contest %}
{{ problem.render_problem_title(pdoc, tdoc=tdoc, show_tags=false, show_invisible_flag=false) }}
{% elif pdoc and (not pdoc.hidden or handler.user.hasPerm(perm.PERM_VIEW_PROBLEM_HIDDEN) or handler.user.own(pdoc)) %}
{{ problem.render_problem_title(pdoc, show_tags=false) }}
{% else %}
*