~cedric/newspipe

05330fe99947815ad5ed3580d2f7a88e5d69321a — C├ędric Bonhomme 4 months ago 43feb98
chg: [template] in the template for popular feeds, select only defined feeds
1 files changed, 11 insertions(+), 8 deletions(-)

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