Correction de la page d'accueil : Affichage d'un message si aucun jeu

Notamment dans la liste complète des jeux.
This commit is contained in:
Olivier DOSSMANN 2017-08-31 16:52:31 +02:00
parent be6b7bfc99
commit 88ceb57a09
3 changed files with 14 additions and 6 deletions

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: 0.1\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-08-31 14:31+0000\n"
"POT-Creation-Date: 2017-08-31 14:49+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Olivier DOSSMANN <git@dossmann.net>\n"
"Language-Team: \n"

View File

@ -7,8 +7,8 @@ msgid ""
msgstr ""
"Project-Id-Version: 0.1\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-08-31 14:31+0000\n"
"PO-Revision-Date: 2017-08-31 16:32+0200\n"
"POT-Creation-Date: 2017-08-31 14:49+0000\n"
"PO-Revision-Date: 2017-08-31 16:50+0200\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: fr\n"
@ -137,10 +137,14 @@ msgstr "Aucun jeu en cours."
msgid "Complete list"
msgstr "Liste complète"
#: games/templates/games/index.html:23
#: games/templates/games/index.html:25
msgid "No game found."
msgstr "Aucun jeu."
#: games/templates/games/index.html:27
msgid "Memory Card"
msgstr "Carte mémoire"
#: games/templates/games/index.html:34
#: games/templates/games/index.html:38
msgid "Empty memory."
msgstr "Mémoire vide."

View File

@ -15,11 +15,15 @@
<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>
@ -33,4 +37,4 @@
{% else %}
<p>{% trans "Empty memory." %}</p>
{% endif %}
{% endblock %}
{% endblock %}