diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2020-06-23 13:45:47 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2020-06-23 13:45:47 +0200 |
commit | bb39d2e2a328c847f45520b43ae297b567c58f4a (patch) | |
tree | b8be6584e4b362f10a6811f9f31f7ccec6a4392e | |
parent | chg: [template] in the template for popular feeds, select only defined feeds (diff) | |
download | newspipe-bb39d2e2a328c847f45520b43ae297b567c58f4a.tar.gz newspipe-bb39d2e2a328c847f45520b43ae297b567c58f4a.tar.bz2 newspipe-bb39d2e2a328c847f45520b43ae297b567c58f4a.zip |
chg: [template] in the template for popular feeds, select only feeds different from None
-rw-r--r-- | newspipe/templates/popular.html | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/newspipe/templates/popular.html b/newspipe/templates/popular.html index b9cf43ab..23684695 100644 --- a/newspipe/templates/popular.html +++ b/newspipe/templates/popular.html @@ -10,18 +10,20 @@ <div class="row"> <div class="col"> <ul class="list-group"> - {% for feed in popular | select("defined") %} - <li class="list-group-item d-flex justify-content-between"> - <a href="{{ feed[0] }}">{{ feed[0] }}</a> - <div> - <a href="{{ url_for('feed.bookmarklet', url=feed[0]) }}"> - <span class="fa fa-plus text-muted" aria-hidden="true" title="follow this feed"></span> - <span class="text-muted">{{ _('add this feed') }}</span> - </a> - - <span class="badge badge-light rounded-pill">{{ feed[1] }}</span> - </div> - </li> + {% for feed in popular %} + {% if feed[0] != 'None' %} + <li class="list-group-item d-flex justify-content-between"> + <a href="{{ feed[0] }}">{{ feed[0] }}</a> + <div> + <a href="{{ url_for('feed.bookmarklet', url=feed[0]) }}"> + <span class="fa fa-plus text-muted" aria-hidden="true" title="follow this feed"></span> + <span class="text-muted">{{ _('add this feed') }}</span> + </a> + + <span class="badge badge-light rounded-pill">{{ feed[1] }}</span> + </div> + </li> + {% endif %} {% endfor %} </ul> </div> |