From abec11e7ca0ce49081343bb2b2eb8520058d67a8 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Sun, 13 Oct 2013 10:07:51 +0200 Subject: Added new files. First prototype with the Flask micro-framework. --- pyaggr3g470r/templates/about.html | 1 + pyaggr3g470r/templates/home.html | 26 ++++++++++++++++ pyaggr3g470r/templates/layout.html | 62 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 89 insertions(+) create mode 100644 pyaggr3g470r/templates/about.html create mode 100644 pyaggr3g470r/templates/home.html create mode 100644 pyaggr3g470r/templates/layout.html (limited to 'pyaggr3g470r/templates') diff --git a/pyaggr3g470r/templates/about.html b/pyaggr3g470r/templates/about.html new file mode 100644 index 00000000..8d1c8b69 --- /dev/null +++ b/pyaggr3g470r/templates/about.html @@ -0,0 +1 @@ + diff --git a/pyaggr3g470r/templates/home.html b/pyaggr3g470r/templates/home.html new file mode 100644 index 00000000..da71c881 --- /dev/null +++ b/pyaggr3g470r/templates/home.html @@ -0,0 +1,26 @@ + {% extends "layout.html" %} +{% block content %} +
+ {% for feed in feeds %} +
+

{{ feed.title }}

+
+ {% for number in range(0, feed.articles[:10]|length-2, 3) %} +
+
+

{{ feed.articles[number].title }}

+

{{ feed.articles[number].date }}
+
+
+

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

+

{{ feed.articles[number+1].date }}
+
+
+

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

+

{{ feed.articles[number+2].date }}
+
+
+ {% endfor %} + {% endfor %} +
+{% endblock %} diff --git a/pyaggr3g470r/templates/layout.html b/pyaggr3g470r/templates/layout.html new file mode 100644 index 00000000..b3b38dcc --- /dev/null +++ b/pyaggr3g470r/templates/layout.html @@ -0,0 +1,62 @@ + + + + {% block head %} + + + + + + + pyAggr3g470r + + + + + + + + + {% endblock %} + + + + + + + {% block content %}{% endblock %} + + + + + + + + + -- cgit