mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
bug fix
This commit is contained in:
1 parent
2b6a510c1e
commit
f2bcc3bc93
23 files changed
+241
-119
No files matched your search
@@ -56,6 +56,50 @@
|
||||
</ol>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if htdocs.length %}
|
||||
<div class="section page--homework_main">
|
||||
<div class="section__header">
|
||||
<h1 class="section__title">{{ _('Homework') }}</h1>
|
||||
</div>
|
||||
<ol class="section__list homework__list">
|
||||
{% for tdoc in htdocs %}
|
||||
<li class="section__list__item homework__item">
|
||||
<div class="media">
|
||||
<div class="media__left medium">
|
||||
<div class="homework__date numbox">
|
||||
<div class="numbox__num large">{{ datetimeSpan(tdoc['penaltySince'], false, '%d')|safe }}</div>
|
||||
<div class="numbox__text">{{ datetimeSpan(tdoc['penaltySince'], false, '%Y-%m')|safe }}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="media__body medium">
|
||||
<h1 class="homework__title"><a href="/homework/{{ tdoc.docId }}" data-emoji-enabled>{{ tdoc['title'] }}</a></h1>
|
||||
<ul class="supplementary list">
|
||||
<li>
|
||||
{{ _('Status') }}: <span class="homework-status--text {{ model.contest.getStatus(tdoc) }}">{{ _(model.contest.statusText(tdoc)) }}</span>
|
||||
</li>
|
||||
<li>
|
||||
{{ _('Open Since') }}: {{ datetimeSpan(tdoc['beginAt'])|safe }}
|
||||
</li>
|
||||
<li>
|
||||
{% if model.contest.isHomeworkExtended(tdoc) or model.contest.isDone(tdoc) %}
|
||||
{{ _('Hard Deadline') }}: {{ datetimeSpan(tdoc['endAt'])|safe }}
|
||||
{% else %}
|
||||
{{ _('Deadline') }}: {{ datetimeSpan(tdoc['penaltySince'])|safe }}
|
||||
{% endif %}
|
||||
</li>
|
||||
{% if htsdict[tdoc['docId']]['attend'] == 1 %}
|
||||
<li class="homework__info-attended">
|
||||
<span class="icon icon-check"></span> {{ _('Claimed') }}
|
||||
</li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ol>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if trdocs.length %}
|
||||
<div class="section page--training_main">
|
||||
<div class="section__header">
|
||||
|
||||
Reference in new issue
Block a user