Jack Jackson 1c9aa30721 Add "Latest Score" in Decks view
Also experiment with auto-helm-update and caching, and make some updates
to seed data
2024-07-10 21:20:48 -07:00

30 lines
580 B
HTML

{% extends "base.html" %}
{% block title %}Decks{% endblock %}
{% block head %}
{{ super() }}
{% endblock %}
{% block content %}
<h1>Decks</h1>
<table>
<tr>
<th>Deck Name</th>
<th>Owner</th>
<th>Games Played</th>
<th>Score</th>
</tr>
{% for deck in decks %}
<tr>
<td>
<a href="/deck/{{ deck.id }}">{{ deck.name }}</a>
</td>
<td>{{ deck.owner.name }}</td>
<td>{{ deck.games_played }}</td>
<td>{{ deck.latest_score // 1 }}</td>
</tr>
{% endfor %}
</table>
{% endblock %}