aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/templates/home.html
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2013-10-13 14:50:05 +0200
committerCédric Bonhomme <kimble.mandel@gmail.com>2013-10-13 14:50:05 +0200
commit9d432f5effe32285651dcb46645caffe24b6765f (patch)
tree8b85c1cbb25c6ccfd128f0188fd058bf40fc71a7 /pyaggr3g470r/templates/home.html
parentFirst implementation of /favorites page. (diff)
downloadnewspipe-9d432f5effe32285651dcb46645caffe24b6765f.tar.gz
newspipe-9d432f5effe32285651dcb46645caffe24b6765f.tar.bz2
newspipe-9d432f5effe32285651dcb46645caffe24b6765f.zip
Optimizations in /home and /articles templates.
Diffstat (limited to 'pyaggr3g470r/templates/home.html')
-rw-r--r--pyaggr3g470r/templates/home.html22
1 files changed, 6 insertions, 16 deletions
diff --git a/pyaggr3g470r/templates/home.html b/pyaggr3g470r/templates/home.html
index 7aede342..aa390d2d 100644
--- a/pyaggr3g470r/templates/home.html
+++ b/pyaggr3g470r/templates/home.html
@@ -10,24 +10,14 @@
</div>
{% for number in range(0, feed.articles|sort(attribute='date')|length-2, 3) %}
<div class="row">
+ {% for n in range(number, number+3) %}
<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>
+ {% if feed.articles[n].readed %}<h3>{% else %}<h1>{% endif %}
+ <a href="/article/{{ feed.articles[n].id }}">{{ feed.articles[n].title }}</a><h2>
+ {% if feed.articles[n].readed %}</h3>{% else %}</h1>{% endif %}
+ <h6>{{ feed.articles[n].date }}</h6>
</div>
+ {% endfor %}
</div>
{% endfor %}
{% endfor %}
bgstack15