From d33d9083c974dde2c65fe454b151aa4849d5dfbe Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Sun, 13 Oct 2013 11:10:52 +0200 Subject: Updated about page. Readed article title are using h3 headers and unreaded h1 headers. --- pyaggr3g470r/templates/about.html | 9 ++++++++- pyaggr3g470r/templates/home.html | 16 ++++++++++++---- pyaggr3g470r/templates/layout.html | 12 ++++++------ pyaggr3g470r/views.py | 2 +- 4 files changed, 27 insertions(+), 12 deletions(-) (limited to 'pyaggr3g470r') diff --git a/pyaggr3g470r/templates/about.html b/pyaggr3g470r/templates/about.html index 8d1c8b69..5bba9282 100644 --- a/pyaggr3g470r/templates/about.html +++ b/pyaggr3g470r/templates/about.html @@ -1 +1,8 @@ - + {% extends "layout.html" %} +{% block content %} +
+

This software is under GPLv3 license. You are welcome to copy, modify or + redistribute the source code according to the GPLv3 license.
+ Source code of pyAggr3g470r.

+
+{% endblock %} diff --git a/pyaggr3g470r/templates/home.html b/pyaggr3g470r/templates/home.html index da71c881..76104e68 100644 --- a/pyaggr3g470r/templates/home.html +++ b/pyaggr3g470r/templates/home.html @@ -6,21 +6,29 @@

{{ feed.title }}

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

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

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

{% else %}

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

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

{% else %}{% endif %}
{{ feed.articles[number].date }}
-

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

+ {% 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 }}
-

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

+ {% 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 %} {% endfor %} -{% endblock %} +{% endblock %} \ No newline at end of file diff --git a/pyaggr3g470r/templates/layout.html b/pyaggr3g470r/templates/layout.html index b3b38dcc..9a194453 100644 --- a/pyaggr3g470r/templates/layout.html +++ b/pyaggr3g470r/templates/layout.html @@ -1,6 +1,6 @@ - + {% block head %} @@ -11,7 +11,7 @@ pyAggr3g470r - +