openbackloggery/collection/games/templates/games/summary.html

36 lines
1.1 KiB
HTML

{% extends "base.html" %}
{% load i18n %}
{% block content %}
<h1>{% trans "My summary" %}</h1>
<h2>{% trans "Now playing" %}</h2>
{% if playing_games %}
<ul>
{% for playing in playing_games %}
<li><strong>{{ playing.collection.shortname }}</strong> - {{ playing.name }}</li>
{% endfor %}
</ul>
{% else %}
<p>{% trans "No playing game found." %}</p>
{% endif %}
<h2>{% trans "Memory Card" %}</h2>
{% if last_timelines %}
{% regroup last_timelines by date as dates %}
{% for date in dates %}
<p><u>{{ date.grouper }} : </u>
<ul>
{% for timeline in date.list|dictsortreversed:"id" %}
<li>
<strong>{{ timeline.get_status_display }} :</strong> {{ timeline.item.name }}
(<strong>{{ timeline.item.collection.shortname }}</strong>)
</li>
{% endfor %}
</ul>
{% endfor %}
</p>
{% else %}
<p>{% trans "Empty memory." %}</p>
{% endif %}
{% endblock %}