diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-02-21 18:24:30 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-02-21 18:24:30 +0100 |
commit | a2437684225c88eca1e56c1ea159b35b8df9b698 (patch) | |
tree | 91238d762103f82df8205acd8ca7b61537fa77da | |
parent | With the new home page we do not need anymore the link to see all articles of... (diff) | |
download | newspipe-a2437684225c88eca1e56c1ea159b35b8df9b698.tar.gz newspipe-a2437684225c88eca1e56c1ea159b35b8df9b698.tar.bz2 newspipe-a2437684225c88eca1e56c1ea159b35b8df9b698.zip |
Minor improvements to the list of feeds.
-rw-r--r-- | src/web/templates/feed_list.html | 6 | ||||
-rw-r--r-- | src/web/templates/feeds.html | 2 |
2 files changed, 3 insertions, 5 deletions
diff --git a/src/web/templates/feed_list.html b/src/web/templates/feed_list.html index d9facc88..2e7e8e71 100644 --- a/src/web/templates/feed_list.html +++ b/src/web/templates/feed_list.html @@ -1,6 +1,4 @@ -{% if feeds.count() == 0 %} - <h1>{{_("No feed")}}</h1> -{% else %} +{% if feeds.count() != 0 %} <div class="table-responsive"> <table class="table table-striped"> <thead> @@ -27,7 +25,7 @@ <i class="glyphicon glyphicon-exclamation-sign" title="{{ _('Feed encountered too much errors.') }}"></i> {% endif %} </td> - <td>{% if feed.icon_url %}<img src="{{ url_for('icon.icon', url=feed.icon_url) }}" width="16px" />{% endif %}{{ feed.title }}</td> + <td>{% if feed.icon_url %}<img src="{{ url_for('icon.icon', url=feed.icon_url) }}" width="16px" /> {% endif %}{{ feed.title }}</td> <td><a href="{{ feed.site_link }}">{{ feed.site_link }}</a></td> <td>( {{ unread_article_count.get(feed.id, 0) }} ) {{ article_count.get(feed.id, 0) }}</td> <td> diff --git a/src/web/templates/feeds.html b/src/web/templates/feeds.html index 9523d43f..805e1b74 100644 --- a/src/web/templates/feeds.html +++ b/src/web/templates/feeds.html @@ -1,7 +1,7 @@ {% extends "layout.html" %} {% block content %} <div class="container"> - <h1>{{ _('You are subscribed to %(feed_count)d feeds.', feed_count=feeds.count()) }} · {{ _('Add a') }} <a href="{{ url_for("feed.form") }}">{{ _('feed') }}</a></h1> + <h1>{{ _('You are subscribed to %(feed_count)d feeds.', feed_count=feeds.count()) }} <a href="{{ url_for("feed.form") }}">{{ _('Add') }}</a> {{ _('a feed') }}.</h1> {% include "feed_list.html" %} </div><!-- /.container --> {% endblock %} |