Ajout d'une page d'accueil listant la collection

This commit is contained in:
2017-08-31 15:20:08 +02:00
parent 5ba6193d4b
commit 5867d70111
7 changed files with 96 additions and 19 deletions

View File

@ -0,0 +1,23 @@
{% 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>
<ul>
{% for game in non_excluded_games %}
<li>{{ game.name }}</li>
{% endfor %}
</ul>
{% endblock %}