~cedric/newspipe

bb39d2e2a328c847f45520b43ae297b567c58f4a — C├ędric Bonhomme 21 days ago 05330fe
chg: [template] in the template for popular feeds, select only feeds different from None
1 files changed, 14 insertions(+), 12 deletions(-)

M newspipe/templates/popular.html
M newspipe/templates/popular.html => newspipe/templates/popular.html +14 -12
@@ 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>
                        &nbsp;
                        <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>
                            &nbsp;
                            <span class="badge badge-light rounded-pill">{{ feed[1] }}</span>
                        </div>
                    </li>
                {% endif %}
            {% endfor %}
            </ul>
        </div>