From 73be6e604e30f7c85bd10971020671f04d8f9b9f Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Fri, 23 May 2014 14:14:45 +0200 Subject: New list menu for feeds. --- pyaggr3g470r/templates/home.html | 102 ++++++++++++++++++++++----------------- 1 file changed, 59 insertions(+), 43 deletions(-) (limited to 'pyaggr3g470r') diff --git a/pyaggr3g470r/templates/home.html b/pyaggr3g470r/templates/home.html index 94e4d736..b254d38d 100644 --- a/pyaggr3g470r/templates/home.html +++ b/pyaggr3g470r/templates/home.html @@ -1,52 +1,68 @@ {% extends "layout.html" %} {% block content %}
- {% if result|count == 0 %} -

{{ _('You are not subscribed to any feed.') }} {{ _('Fix this.') }}

- {% else %} - {% for feed in result|sort(attribute="title") %} -
-
-

{{ feed.title|safe }} - {% if unread[feed.id] != 0 %} - {{ unread[feed.id] }} - {% endif %}

- - - - {% if feed.enabled %} - - {% endif %} - {% if unread[feed.id] != 0 %} - - {% endif %} -
-
- {% for number in range(0, feed.articles.all()|count-(feed.articles.all()|count % 3), 3) %} -
- {% for n in range(number, number+3) %} -
- {% if feed.articles[n].readed %}

{% else %}

{% endif %} - {{ feed.articles[n].title|safe }} - {% if feed.articles[n].readed %}

{% else %}{% endif %} -
{{ feed.articles[n].date | datetime }}
-
- {% endfor %} -
+
+
+ +
+
+ {% if result|count == 0 %} +

{{ _('You are not subscribed to any feed.') }} {{ _('Fix this.') }}

+ {% else %} + {% for feed in result|sort(attribute="title") %} +
+
+

{{ feed.title|safe }} + {% if unread[feed.id] != 0 %} + {{ unread[feed.id] }} + {% endif %}

+ + + + {% if feed.enabled %} + + {% endif %} + {% if unread[feed.id] != 0 %} + + {% endif %} +
+
+ {% for number in range(0, feed.articles.all()|count-(feed.articles.all()|count % 3), 3) %} +
+ {% for n in range(number, number+3) %} +
+ {% if feed.articles[n].readed %}

{% else %}

{% endif %} + {{ feed.articles[n].title|safe }} + {% if feed.articles[n].readed %}

{% else %}{% endif %} +
{{ feed.articles[n].date | datetime }}
+
+ {% endfor %}
{% endfor %} -
+ {% if feed.articles.all()|count % 3 != 0 %} +
+ {% for n in range(feed.articles.all()|count-(feed.articles.all()|count % 3), feed.articles.all()|count) %} +
+ {% if feed.articles[n].readed %}

{% else %}

{% endif %} + {{ feed.articles[n].title|safe }} + {% if feed.articles[n].readed %}

{% else %}{% endif %} +
{{ feed.articles[n].date | datetime }}
+
+ {% endfor %} +
+ {% endif %} + {% endfor %} {% endif %} - {% endfor %} - {% endif %} +
+
{% endblock %} -- cgit