ui: fix link display

This commit is contained in:
undefined committed 2021-05-31 23:27:20 +08:00
1 parent 43d589c84d
commit 385b8f4fe6
4 files changed
+16 -8

No files matched your search

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