openbackloggery/collection/games/templates/games/index.html

41 lines
1.1 KiB
HTML

{% extends "base.html" %}
{% load i18n %}
{% block content %}
<h1>{% trans "Games" %}</h1>
<h2>{% trans "Now playing" %}</h2>
{% if playing_games %}
<ul>
{% for playing in playing_games %}
<li>{{ playing.name }}</li>
{% endfor %}
</ul>
{% else %}
<p>{% trans "No playing game found." %}</p>
{% endif %}
<h2>{% trans "Complete list" %}</h2>
{% if non_excluded_games %}
<ul>
{% for game in non_excluded_games %}
<li>{{ game.name }}</li>
{% endfor %}
</ul>
{% else %}
<p>{% trans "No game found." %}</p>
{% endif %}
<h2>{% trans "Memory Card" %}</h2>
{% if last_timelines %}
<ul>
{% for timeline in last_timelines %}
<li>{{ timeline.date|date:"SHORT_DATE_FORMAT" }} -
<strong>{{ timeline.get_status_display }} :</strong> {{ timeline.item.name }}
({{ timeline.item.collection.name }})
</li>
{% endfor %}
</ul>
{% else %}
<p>{% trans "Empty memory." %}</p>
{% endif %}
{% endblock %}