From 39627d4182019bfd5290fd11e30ac5d5885a6d41 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Sun, 22 Jun 2014 18:10:35 +0200 Subject: Added some messages to the home page. --- pyaggr3g470r/templates/home.html | 86 ++++++++++++++++++++++------------------ 1 file changed, 48 insertions(+), 38 deletions(-) (limited to 'pyaggr3g470r/templates/home.html') diff --git a/pyaggr3g470r/templates/home.html b/pyaggr3g470r/templates/home.html index ee0f43b1..d0258ec1 100644 --- a/pyaggr3g470r/templates/home.html +++ b/pyaggr3g470r/templates/home.html @@ -50,7 +50,7 @@
-

{{ _('Your articles') }} ({{ articles.__len__() }})

+

{{ _('Articles') }} ({{ articles.__len__() }})

{% if filter_ == 'all' %}{% endif %} {{ _('All') }} @@ -79,44 +79,54 @@ {% if limit == 'all' %}{% endif %} {{ _('All') }} {% if limit == 'all' %}{% endif %} - -
-
- - - - - - - - - - - {% for article in articles %} - - - - - - - {% endfor %} - -
{{ _('Feed') }}{{ _('Article') }}{{ _('Date') }}
{{ article.source.title|safe }}{{ article.title|safe }}{{ article.date|datetime }} - - - {% if article.like %} - - {% else %} - - {% endif %} - - {% if article.readed %} - - {% else %} - - {% endif %} -
+ {% if articles | count != 0%} +
+ + + + + + + + + + + {% for article in articles %} + + + + + + + {% endfor %} + +
{{ _('Feed') }}{{ _('Article') }}{{ _('Date') }}
{{ article.source.title|safe }}{{ article.title|safe }}{{ article.date|datetime }} + + + {% if article.like %} + + {% else %} + + {% endif %} + + {% if article.readed %} + + {% else %} + + {% endif %} +
+
+ {% else %} +
+ {% if filter_ == 'all' %} +
Oh! {{ _('This feed is empty.') }}
+ {% elif filter_ == 'read' %} +
Work for you! {{ _('All articles are unread.') }}
+ {% elif filter_ == 'unread' %} +
Well done! {{ _('You read all articles.') }}
+ {% endif %} + {% endif %}
{% endif %} {% endblock %} -- cgit