diff options
author | François Schmidts <francois.schmidts@gmail.com> | 2015-04-16 14:24:48 +0200 |
---|---|---|
committer | François Schmidts <francois.schmidts@gmail.com> | 2015-04-16 14:24:48 +0200 |
commit | edcfb221ecfec95ea824675863c5d76a45a585bd (patch) | |
tree | 3b60ee144d416c06b5f088e7efb31bf72b4f10d5 /pyaggr3g470r/templates | |
parent | removing unused template (diff) | |
download | newspipe-edcfb221ecfec95ea824675863c5d76a45a585bd.tar.gz newspipe-edcfb221ecfec95ea824675863c5d76a45a585bd.tar.bz2 newspipe-edcfb221ecfec95ea824675863c5d76a45a585bd.zip |
redoing sorting on SQL and allowing to reverse sorting
Diffstat (limited to 'pyaggr3g470r/templates')
-rw-r--r-- | pyaggr3g470r/templates/home.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pyaggr3g470r/templates/home.html b/pyaggr3g470r/templates/home.html index 461b6928..10ad82cb 100644 --- a/pyaggr3g470r/templates/home.html +++ b/pyaggr3g470r/templates/home.html @@ -73,9 +73,9 @@ <thead> <tr> <th></th> - <th><a href="{{ gen_url(sort_='feed') }}">{{ _('Feed') }}</a></th> + <th><a href="{{ gen_url(sort_='-feed' if sort_ == 'feed' else 'feed') }}">{{ _('Feed') }}</a></th> <th>{{ _('Article') }}</th> - <th><a href="{{ gen_url(sort_='date') }}">{{ _('Date') }}</a></th> + <th><a href="{{ gen_url(sort_='-date' if sort_ == 'date' else 'date') }}">{{ _('Date') }}</a></th> </tr> </thead> <tbody> |