From 0408a624a671f06a6ba0122e78b41f48ac2900c6 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Sun, 13 Nov 2016 17:29:47 +0100 Subject: Added page for public feeds. --- src/web/templates/article_pub.html | 2 +- src/web/templates/feed.html | 39 ++++++++++++++++++++++++++++++++++---- src/web/templates/popular.html | 2 +- 3 files changed, 37 insertions(+), 6 deletions(-) (limited to 'src/web/templates') diff --git a/src/web/templates/article_pub.html b/src/web/templates/article_pub.html index f9275217..e810d18f 100644 --- a/src/web/templates/article_pub.html +++ b/src/web/templates/article_pub.html @@ -3,7 +3,7 @@

{{ article.title|safe }}

-

{{ _('from') }} {{ article.source.title }}

+

{{ _('from') }} {{ article.source.title }}

{{ article.date | datetime }}
diff --git a/src/web/templates/feed.html b/src/web/templates/feed.html index 7a40ca9a..d8dd7f5c 100644 --- a/src/web/templates/feed.html +++ b/src/web/templates/feed.html @@ -41,10 +41,41 @@ {% endif %}

-
- {% if feed.articles.all()|count != 0 %} -
{{ tag_cloud|safe }}
- {% endif %} + +
+
+
+ + + + + + + + {% for article in articles %} + + + + {% endfor %} + +
{{ _('Article') }}
{{ article.title }}
+
+
+ + +
+ {% if articles | count != 0 %} +
{{ tag_cloud | safe }}
+ {% endif %} +
+
+ {% endblock %} diff --git a/src/web/templates/popular.html b/src/web/templates/popular.html index b1978bf1..aae50a8c 100644 --- a/src/web/templates/popular.html +++ b/src/web/templates/popular.html @@ -13,6 +13,6 @@ {{ feed[1] }} {% endfor %} - +
{% endblock %} -- cgit