ui: fix record_detail display(homework)

This commit is contained in:
undefined committed 2021-05-30 12:51:44 +08:00
1 parent 99fbd1379e
commit 8532cb5ec3
2 files changed
+3 -3

No files matched your search

@@ -56,9 +56,9 @@
</dd>
{% endif %}
{% if tdoc %}
<dt>{{ _('Contest') }}</dt>
<dt>{{ _('Contest') if tdoc.docType == model.document.TYPE_CONTEST else _('Homework') }}</dt>
<dd>
<a href="{{ url('contest_detail', tid=tdoc.docId) }}">{{ tdoc.title }}</a>
<a href="{{ url('contest_detail', tid=tdoc.docId) if tdoc.docType == model.document.TYPE_CONTEST else url('homework_detail', tid=tdoc.docId) }}">{{ tdoc.title }}</a>
</dd>
{% endif %}
<dt>{{ _('Language') }}</dt>