From 79dfa104623d51b7e0bdb411eadceda1747d0a20 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Sat, 14 Sep 2013 10:44:59 +0200 Subject: Templates has been removed to the upper folder. --- source/templates/articles.html | 43 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 source/templates/articles.html (limited to 'source/templates/articles.html') diff --git a/source/templates/articles.html b/source/templates/articles.html new file mode 100644 index 00000000..d7fcc4d5 --- /dev/null +++ b/source/templates/articles.html @@ -0,0 +1,43 @@ +## articles.html +<%inherit file="base.html"/> +<% +import utils +%> +
+ Mark all articles from this feed as read +
+
+ +
+
+
+ +
+

Articles of the feed ${feed['feed_title']}

+ %if articles.count() == 0: +

No articles yet.

+ %else: +
+ %endif + %for article in articles: + <% + if article["article_readed"] == False: + not_read_begin, not_read_end = "", "" + else: + not_read_begin, not_read_end = "", "" + + if article["article_like"] == True: + like = """""" + else: + like = "" + + article_content = utils.clear_string(article["article_content"]) + if article_content: + description = " ".join(article_content[:500].split(' ')[:-1]) + else: + description = "No description." + %> + ${article["article_date"].strftime('%Y-%m-%d %H:%M')} - ${not_read_begin}${article["article_title"][:150]}${not_read_end}${description} ${like} +
+ %endfor +

All feeds

-- cgit