diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-02-15 14:24:41 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-02-15 14:24:41 +0100 |
commit | 4163ea26ee2b04e5d78345f6505bb375ef0d3882 (patch) | |
tree | e59c550b6c813a3c8dac271a4f9f48c6e918fbe0 /src/web/templates/feed_list.html | |
parent | Fixed a bug when existing_article.updated_date is None. (diff) | |
download | newspipe-4163ea26ee2b04e5d78345f6505bb375ef0d3882.tar.gz newspipe-4163ea26ee2b04e5d78345f6505bb375ef0d3882.tar.bz2 newspipe-4163ea26ee2b04e5d78345f6505bb375ef0d3882.zip |
It is again possible (for an administrator) to delete the feed of a user.
Diffstat (limited to 'src/web/templates/feed_list.html')
-rw-r--r-- | src/web/templates/feed_list.html | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/web/templates/feed_list.html b/src/web/templates/feed_list.html index 114ae960..2cfab7d8 100644 --- a/src/web/templates/feed_list.html +++ b/src/web/templates/feed_list.html @@ -34,10 +34,14 @@ <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> - <a href="{{ url_for("home", feed_id=feed.id, filter_="all") }}"><i class="glyphicon glyphicon-th-list" title="{{ _('Articles') }}"></i></a> - <a href="{{ url_for("feed.form", feed_id=feed.id) }}"><i class="glyphicon glyphicon-edit" title="{{ _('Edit this feed') }}"></i></a> - <a href="{{ url_for("feed.duplicates", feed_id=feed.id) }}"><i class="glyphicon glyphicon-book" title="{{ _('Duplicate articles') }}"></i></a> - <a href="{{ url_for("feed.delete", feed_id=feed.id) }}"><i class="glyphicon glyphicon-remove" title="{{ _('Delete this feed') }}" onclick="return confirm('{{ _('You are going to delete this feed.') }}');"></i></a> + {% if feed.user_id == current_user.id %} + <a href="{{ url_for("home", feed_id=feed.id, filter_="all") }}"><i class="glyphicon glyphicon-th-list" title="{{ _('Articles') }}"></i></a> + <a href="{{ url_for("feed.form", feed_id=feed.id) }}"><i class="glyphicon glyphicon-edit" title="{{ _('Edit this feed') }}"></i></a> + <a href="{{ url_for("feed.duplicates", feed_id=feed.id) }}"><i class="glyphicon glyphicon-book" title="{{ _('Duplicate articles') }}"></i></a> + <a href="{{ url_for("feed.delete", feed_id=feed.id) }}"><i class="glyphicon glyphicon-remove" title="{{ _('Delete this feed') }}" onclick="return confirm('{{ _('You are going to delete this feed.') }}');"></i></a> + {% else %} + <a href="{{ url_for("admin.delete", feed_id=feed.id) }}"><i class="glyphicon glyphicon-remove" title="{{ _('Delete this feed') }}" onclick="return confirm('{{ _('You are going to delete this feed.') }}');"></i></a> + {% endif %} </td> </tr> {% endfor %} |