diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2020-06-23 13:37:05 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2020-06-23 13:37:05 +0200 |
commit | 05330fe99947815ad5ed3580d2f7a88e5d69321a (patch) | |
tree | 7e3700c238b54345c6f8818a2fd1bd8068f79838 | |
parent | improvements to the menu of feeds (diff) | |
download | newspipe-05330fe99947815ad5ed3580d2f7a88e5d69321a.tar.gz newspipe-05330fe99947815ad5ed3580d2f7a88e5d69321a.tar.bz2 newspipe-05330fe99947815ad5ed3580d2f7a88e5d69321a.zip |
chg: [template] in the template for popular feeds, select only defined feeds
-rw-r--r-- | newspipe/templates/popular.html | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/newspipe/templates/popular.html b/newspipe/templates/popular.html index a80cee57..b9cf43ab 100644 --- a/newspipe/templates/popular.html +++ b/newspipe/templates/popular.html @@ -8,16 +8,19 @@ </div> </div> <div class="row"> - <div class="col-md-12"> + <div class="col"> <ul class="list-group"> - {% for feed in popular %} - <li class="list-group-item d-flex justify-content-between align-items-center"> + {% for feed in popular | select("defined") %} + <li class="list-group-item d-flex justify-content-between"> <a href="{{ feed[0] }}">{{ feed[0] }}</a> - <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-primary badge-pill">{{ feed[1] }}</span> + <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> {% endfor %} </ul> |