diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2015-03-17 06:56:38 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2015-03-17 06:56:38 +0100 |
commit | 264c916b1e83a3f429c87a14d69c45e87a5afbd0 (patch) | |
tree | f33b01bbfaf92eb9c7a351441f1ab6632be3f054 | |
parent | Improvements to the 'history' page. (diff) | |
download | newspipe-264c916b1e83a3f429c87a14d69c45e87a5afbd0.tar.gz newspipe-264c916b1e83a3f429c87a14d69c45e87a5afbd0.tar.bz2 newspipe-264c916b1e83a3f429c87a14d69c45e87a5afbd0.zip |
Reverse the sort of articles.
-rw-r--r-- | pyaggr3g470r/templates/history.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pyaggr3g470r/templates/history.html b/pyaggr3g470r/templates/history.html index c4d6c9a6..b01ca032 100644 --- a/pyaggr3g470r/templates/history.html +++ b/pyaggr3g470r/templates/history.html @@ -16,7 +16,7 @@ {% elif month == None %} <li class="list-group-item"><a href="/history/{{ year }}/{{ article }}">{{ article | month_name }}</a> : {{ articles_counter[article] }} articles</li> {% else %} - {% for article in articles | sort(attribute="date") %} + {% for article in articles | sort(attribute="date", reverse = True) %} <li class="list-group-item">{{ article.date }} - <a href="/article/{{ article.id }}">{{ article.title | safe }}</a></li> {% endfor %} {% endif %} |