diff options
author | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-10-13 23:31:14 +0200 |
---|---|---|
committer | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-10-13 23:31:14 +0200 |
commit | 153724fc133f461dd800e4af2e591752489204b5 (patch) | |
tree | 6f283d389a89856ad57b988c7b0713047ef23fa5 /pyaggr3g470r/templates | |
parent | fixed bug in /articles page. (diff) | |
download | newspipe-153724fc133f461dd800e4af2e591752489204b5.tar.gz newspipe-153724fc133f461dd800e4af2e591752489204b5.tar.bz2 newspipe-153724fc133f461dd800e4af2e591752489204b5.zip |
Trying to sort articles (SortedListField(ReferenceField('Article')).
Diffstat (limited to 'pyaggr3g470r/templates')
-rw-r--r-- | pyaggr3g470r/templates/article.html | 3 | ||||
-rw-r--r-- | pyaggr3g470r/templates/articles.html | 2 | ||||
-rw-r--r-- | pyaggr3g470r/templates/home.html | 2 |
3 files changed, 4 insertions, 3 deletions
diff --git a/pyaggr3g470r/templates/article.html b/pyaggr3g470r/templates/article.html index 28c53714..d695a423 100644 --- a/pyaggr3g470r/templates/article.html +++ b/pyaggr3g470r/templates/article.html @@ -2,9 +2,10 @@ {% block content %} <div class="container"> <div class="jumbotron"> - <h1>{{ article.title }}</h1> + <h2>{{ article.title }}</h2> <h4>{{ article.link }}</h4> <h6>{{ article.date }}</h6> + <a href="/delete/{{ article.id }}"><i class="glyphicon glyphicon-remove"></i></a> </div> <div class="jumbotron"> {{ article.content|safe }} diff --git a/pyaggr3g470r/templates/articles.html b/pyaggr3g470r/templates/articles.html index 146769ac..c0abccdf 100644 --- a/pyaggr3g470r/templates/articles.html +++ b/pyaggr3g470r/templates/articles.html @@ -1,7 +1,7 @@ {% extends "layout.html" %} {% block content %} <div class="container"> - {% for number in range(0, feed.articles|sort(attribute='date')|length-2, 3) %} + {% for number in range(0, feed.articles|length-2, 3) %} <div class="row"> {% for n in range(number, number+3) %} <div class="col-xs-6 col-sm-4 col-md-4"> diff --git a/pyaggr3g470r/templates/home.html b/pyaggr3g470r/templates/home.html index aa390d2d..0344263f 100644 --- a/pyaggr3g470r/templates/home.html +++ b/pyaggr3g470r/templates/home.html @@ -8,7 +8,7 @@ <a href="/articles/{{ feed.id }}"><i class="glyphicon glyphicon-th-list"></i></a> </div> </div> - {% for number in range(0, feed.articles|sort(attribute='date')|length-2, 3) %} + {% for number in range(0, feed.articles|length-2, 3) %} <div class="row"> {% for n in range(number, number+3) %} <div class="col-xs-6 col-sm-4 col-md-4"> |