ColdCore/templates/admin/dashboard.html

30 lines
973 B
HTML

{% extends "admin/base.html" %}
{% block content %}
{% if tickets %}
<div class="card red darken-1">
<div class="card-content white-text">
<span class="card-title">Unresolved issues</span>
<p>There are unresolved trouble tickets.</p>
</div>
</div>
{% endif %}
<table class="sortable">
<thead>
<tr><th>Team</th><th>Affiliation</th><th>Eligible</th><th>Last solve</th><th>Score</th></tr>
</thead>
<tbody>
{% for team in teams %}
<tr>
<td>
<a href="{{ url_for('admin.admin_show_team', tid=team.id) }}">{{ team.name }}</a>
</td>
<td>{{ team.affiliation }}</td>
<td>{{ "Eligible" if team.eligible else "Ineligible" }}</td>
<td><abbr class="time" title="{{ lastsolvedata[team.id] }}">{{ lastsolvedata[team.id] }}</abbr></td>
<td>{{ scoredata[team.id] }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endblock %}