From e3ed62caa7d4fe832adacf82b97b8802961e0d08 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Sun, 13 Oct 2013 12:10:57 +0200 Subject: First prototype for the /articles page. --- pyaggr3g470r/templates/articles.html | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 pyaggr3g470r/templates/articles.html (limited to 'pyaggr3g470r/templates/articles.html') diff --git a/pyaggr3g470r/templates/articles.html b/pyaggr3g470r/templates/articles.html new file mode 100644 index 00000000..374eaea7 --- /dev/null +++ b/pyaggr3g470r/templates/articles.html @@ -0,0 +1,27 @@ +{% extends "layout.html" %} +{% block content %} +
+ {% for number in range(0, feed.articles|sort(attribute='date')|length-2, 3) %} +
+
+ {% if feed.articles[number].readed %}

{% else %}

{% endif %} + {{ feed.articles[number].title }}

+ {% if feed.articles[number].readed %}

{% else %}{% endif %} +
{{ feed.articles[number].date }}
+
+
+ {% if feed.articles[number+1].readed %}

{% else %}

{% endif %} + {{ feed.articles[number+1].title }}

+ {% if feed.articles[number+1].readed %}

{% else %}{% endif %} +
{{ feed.articles[number+1].date }}
+
+
+ {% if feed.articles[number+2].readed %}

{% else %}

{% endif %} + {{ feed.articles[number+2].title }}

+ {% if feed.articles[number+2].readed %}

{% else %}{% endif %} +
{{ feed.articles[number+2].date }}
+
+
+ {% endfor %} +
+{% endblock %} \ No newline at end of file -- cgit