aboutsummaryrefslogtreecommitdiff
path: root/src/web/templates/feed_list.html
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2016-09-20 14:48:25 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2016-09-20 14:48:25 +0200
commit8bb831a4c3ce3a2e9c0d61a5a058db87a9e408a0 (patch)
treed2f2eb71f19808ea5f56f419595279658fc95035 /src/web/templates/feed_list.html
parentlazy loading of the translation (diff)
downloadnewspipe-8bb831a4c3ce3a2e9c0d61a5a058db87a9e408a0.tar.gz
newspipe-8bb831a4c3ce3a2e9c0d61a5a058db87a9e408a0.tar.bz2
newspipe-8bb831a4c3ce3a2e9c0d61a5a058db87a9e408a0.zip
Draft for a public user profile page.
Diffstat (limited to 'src/web/templates/feed_list.html')
-rw-r--r--src/web/templates/feed_list.html50
1 files changed, 29 insertions, 21 deletions
diff --git a/src/web/templates/feed_list.html b/src/web/templates/feed_list.html
index 093ed631..04543e4c 100644
--- a/src/web/templates/feed_list.html
+++ b/src/web/templates/feed_list.html
@@ -4,36 +4,44 @@
<thead>
<tr>
<th>#</th>
- <th>{{ _('Status') }}</th>
+ {% if current_user.is_authenticated and current_user.id == user.id %}
+ <th>{{ _('Status') }}</th>
+ {% endif %}
<th>{{ _('Title') }}</th>
<th>{{ _('Site') }}</th>
- <th>{{ _('Articles') }}</th>
- <th>{{ _('Actions') }}</th>
+ {% if current_user.is_authenticated and current_user.id == user.id %}
+ <th>{{ _('Articles') }}</th>
+ <th>{{ _('Actions') }}</th>
+ {% endif %}
</tr>
</thead>
<tbody>
{% for feed in feeds %}
- <tr {% if not feed.enabled %}class="warning"{% endif %}>
+ <tr {% if not feed.enabled and current_user.is_authenticated %}class="warning"{% endif %}>
<td>{{ loop.index }}</td>
- <td>
- {% if feed.enabled %}
- <i class="glyphicon glyphicon-eye-open" title="{{ _('Feed enabled') }}"></i>
- {% else %}
- <i class="glyphicon glyphicon-eye-close" title="{{ _('Feed disabled') }}"></i>
- {% endif %}
- {% if feed.error_count >= conf.DEFAULT_MAX_ERROR %}
- <i class="glyphicon glyphicon-exclamation-sign" title="{{ _('Feed encountered too much errors.') }}"></i>
- {% endif %}
- </td>
+ {% if current_user.is_authenticated and current_user.id == user.id %}
+ <td>
+ {% if feed.enabled %}
+ <i class="glyphicon glyphicon-eye-open" title="{{ _('Feed enabled') }}"></i>
+ {% else %}
+ <i class="glyphicon glyphicon-eye-close" title="{{ _('Feed disabled') }}"></i>
+ {% endif %}
+ {% if feed.error_count >= conf.DEFAULT_MAX_ERROR %}
+ <i class="glyphicon glyphicon-exclamation-sign" title="{{ _('Feed encountered too much errors.') }}"></i>
+ {% endif %}
+ </td>
+ {% endif %}
<td>{% if feed.icon_url %}<img src="{{ url_for('icon.icon', url=feed.icon_url) }}" width="16px" />&nbsp;{% 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>
- <a href="{{ url_for("feed.feed", feed_id=feed.id) }}"><i class="glyphicon glyphicon-info-sign" title="{{ _('Information') }}"></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>
- </td>
+ {% if current_user.is_authenticated and current_user.id == user.id %}
+ <td>( {{ unread_article_count.get(feed.id, 0) }} ) {{ article_count.get(feed.id, 0) }}</td>
+ <td>
+ <a href="{{ url_for("feed.feed", feed_id=feed.id) }}"><i class="glyphicon glyphicon-info-sign" title="{{ _('Information') }}"></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>
+ </td>
+ {% endif %}
</tr>
{% endfor %}
</tbody>
bgstack15