diff options
Diffstat (limited to 'pyaggr3g470r/templates/articles.html')
-rw-r--r-- | pyaggr3g470r/templates/articles.html | 27 |
1 files changed, 27 insertions, 0 deletions
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 %} +<div class="container"> + {% for number in range(0, feed.articles|sort(attribute='date')|length-2, 3) %} + <div class="row"> + <div class="col-xs-6 col-sm-4 col-md-4"> + {% if feed.articles[number].readed %}<h3>{% else %}<h1>{% endif %} + <a href="/article/{{ feed.articles[number].id }}">{{ feed.articles[number].title }}</a><h2> + {% if feed.articles[number].readed %}</h3>{% else %}</h1>{% endif %} + <h6>{{ feed.articles[number].date }}</h6> + </div> + <div class="col-xs-6 col-sm-4 col-md-4"> + {% if feed.articles[number+1].readed %}<h3>{% else %}<h1>{% endif %} + <a href="/article/{{ feed.articles[number+1].id }}">{{ feed.articles[number+1].title }}</a><h2> + {% if feed.articles[number+1].readed %}</h3>{% else %}</h1>{% endif %} + <h6>{{ feed.articles[number+1].date }}</h6> + </div> + <div class="col-xs-6 col-sm-4 col-md-4"> + {% if feed.articles[number+2].readed %}<h3>{% else %}<h1>{% endif %} + <a href="/article/{{ feed.articles[number+2].id }}">{{ feed.articles[number+2].title }}</a><h2> + {% if feed.articles[number+2].readed %}</h3>{% else %}</h1>{% endif %} + <h6>{{ feed.articles[number+2].date }}</h6> + </div> + </div> + {% endfor %} +</div><!-- /.container --> +{% endblock %}
\ No newline at end of file |