From cb6a8d8b53bb27755eb9bc040f86a361636d4c6a Mon Sep 17 00:00:00 2001 From: François Schmidts Date: Sun, 8 Jun 2014 17:47:42 +0200 Subject: adding the capacity to mark articles as unread --- pyaggr3g470r/templates/article.html | 1 + pyaggr3g470r/templates/home.html | 5 +++-- pyaggr3g470r/templates/layout.html | 4 ++-- pyaggr3g470r/templates/unread.html | 3 ++- 4 files changed, 8 insertions(+), 5 deletions(-) (limited to 'pyaggr3g470r/templates') diff --git a/pyaggr3g470r/templates/article.html b/pyaggr3g470r/templates/article.html index 83e23b34..1ee86948 100644 --- a/pyaggr3g470r/templates/article.html +++ b/pyaggr3g470r/templates/article.html @@ -14,6 +14,7 @@ {% else %} {% endif %} +
{{ article.date | datetime }}
diff --git a/pyaggr3g470r/templates/home.html b/pyaggr3g470r/templates/home.html index c1663997..297e0214 100644 --- a/pyaggr3g470r/templates/home.html +++ b/pyaggr3g470r/templates/home.html @@ -25,7 +25,7 @@

{{ feed.title|safe }} {% if feed.nb_unread != 0 %} - {{ feed.nb_unread }} + {{ feed.nb_unread }} {% endif %}

@@ -34,8 +34,9 @@ {% endif %} {% if feed.nb_unread != 0 %} - + {% endif %} +
{% for number in range(0, feed.articles.all()|count-(feed.articles.all()|count % 3), 3) %} diff --git a/pyaggr3g470r/templates/layout.html b/pyaggr3g470r/templates/layout.html index d1040422..8fc88d74 100644 --- a/pyaggr3g470r/templates/layout.html +++ b/pyaggr3g470r/templates/layout.html @@ -27,7 +27,7 @@ deployed on Heroku or on a traditional server." /> height: 0; } ul.affix { - position: fixed; + position: fixed; top: 0px; } ul.affix-top { @@ -102,7 +102,7 @@ deployed on Heroku or on a traditional server." /> {{ _('Articles') }} diff --git a/pyaggr3g470r/templates/unread.html b/pyaggr3g470r/templates/unread.html index 6c5c5d08..cdfb0dfe 100644 --- a/pyaggr3g470r/templates/unread.html +++ b/pyaggr3g470r/templates/unread.html @@ -16,7 +16,8 @@ - + +

{{ feed.articles.all()|length }} {{ _('unread articles') }}.

-- cgit