From 2b4781d6013d1b19b72565878caa4e714ebff483 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Fri, 13 Jun 2014 18:47:53 +0200 Subject: Display a message when the user doesn't have any feeds. --- pyaggr3g470r/templates/home.html | 217 ++++++++++++++++++++------------------- 1 file changed, 112 insertions(+), 105 deletions(-) (limited to 'pyaggr3g470r/templates') diff --git a/pyaggr3g470r/templates/home.html b/pyaggr3g470r/templates/home.html index cef8365c..ee0f43b1 100644 --- a/pyaggr3g470r/templates/home.html +++ b/pyaggr3g470r/templates/home.html @@ -5,111 +5,118 @@ li.feed-commands > span > a {margin-right: 10px;} li.feed-menu:hover + li.feed-commands, li.feed-commands:hover {display: block;} - -
-

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

-
- {% if filter_ == 'all' %}{% endif %} - {{ _('All') }} - {% if filter_ == 'all' %}{% endif %} - | - {% if filter_ == 'read' %}{% endif %} - {{ _('Read') }} - {% if filter_ == 'read' %}{% endif %} - | - {% if filter_ == 'unread' %}{% endif %} - {{ _('Unread') }} - {% if filter_ == 'unread' %}{% endif %} - - - {% if limit == 10 %}{% endif %} - {{ _(10) }} - {% if limit == 10 %}{% endif %} - | - {% if limit == 100 %}{% endif %} - {{ _(100) }} - {% if limit == 100 %}{% endif %} - | - {% if limit == 1000 %}{% endif %} - {{ _(1000) }} - {% if limit == 1000 %}{% endif %} - | - {% if limit == 'all' %}{% endif %} - {{ _('All') }} - {% if limit == 'all' %}{% endif %} - +{% if feeds|count == 0 %} +
+

{{ _("You don't have any feeds.") }}

+

{{ _('Add some') }}, {{ _('or') }} {{ _('upload an OPML file.') }}

-
- - - - - - - - - - - {% 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 %} + -
+
+

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

+
+ {% if filter_ == 'all' %}{% endif %} + {{ _('All') }} + {% if filter_ == 'all' %}{% endif %} + | + {% if filter_ == 'read' %}{% endif %} + {{ _('Read') }} + {% if filter_ == 'read' %}{% endif %} + | + {% if filter_ == 'unread' %}{% endif %} + {{ _('Unread') }} + {% if filter_ == 'unread' %}{% endif %} + - + {% if limit == 10 %}{% endif %} + {{ _(10) }} + {% if limit == 10 %}{% endif %} + | + {% if limit == 100 %}{% endif %} + {{ _(100) }} + {% if limit == 100 %}{% endif %} + | + {% if limit == 1000 %}{% endif %} + {{ _(1000) }} + {% if limit == 1000 %}{% endif %} + | + {% 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 %} +
+
+
+{% endif %} {% endblock %} -- cgit