core: contest team (#1183)

This commit is contained in:
Baoshuo authored and GitHub committed 2026-09-16 01:05:44 +08:00
1 parent 238b1263bf
commit 78e898fdfc
22 files changed
+934 -96

No files matched your search

@@ -4,7 +4,22 @@
{%- for tsdoc in tsdocs -%}
<tr data-uid="{{ tsdoc.uid }}">
<td class="col--uid">{{ tsdoc.uid }}</td>
<td class="col--user">{{ user.render_inline(udict[tsdoc.uid], badge=false) }}</td>
<td class="col--user">
{{ user.render_inline(udict[tsdoc.uid], badge=false) }}
{% if tsdoc.displayName or (tsdoc.members and tsdoc.members.length) %}
<br><small class="supplementary">
{% if tsdoc.members and tsdoc.members.length %}
{{ _('Team') }}: {{ tsdoc.displayName }} —
{% for uid in tsdoc.members %}
{%- if not loop.first -%}, {% endif -%}
{{ user.render_inline(udict[uid], avatar=false, badge=false) }}
{%- endfor -%}
{% else %}
{{ tsdoc.displayName }}
{% endif %}
</small>
{% endif %}
</td>
<td class="col--start-time">{{ contest.render_time(tsdoc.startAt or tdoc.beginAt) }}</td>
<td class="col--end-time">{{ contest.render_time(tsdoc.endAt or tdoc.endAt) }}</td>
<td class="col--rank">{{ _('UnRank') if tsdoc.unrank else _('Rank') }}</td>