diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-11-13 18:37:35 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-11-13 18:37:35 +0100 |
commit | 3d50e7b1d07b22da293099b3814130e7736254df (patch) | |
tree | 5ed3e0c599bc652623e1cf4eebf63d6c16184478 /src/web/templates | |
parent | check if feed is private (diff) | |
download | newspipe-3d50e7b1d07b22da293099b3814130e7736254df.tar.gz newspipe-3d50e7b1d07b22da293099b3814130e7736254df.tar.bz2 newspipe-3d50e7b1d07b22da293099b3814130e7736254df.zip |
Added a column for the date of the articles.
Diffstat (limited to 'src/web/templates')
-rw-r--r-- | src/web/templates/feed.html | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/web/templates/feed.html b/src/web/templates/feed.html index d8dd7f5c..22bf0372 100644 --- a/src/web/templates/feed.html +++ b/src/web/templates/feed.html @@ -4,8 +4,10 @@ <div class="well"> <h2>{{ feed.title }}</h2> {% if feed.description %} <p>{{ feed.description }}</p> {% endif %} - <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> - <a href="{{ url_for("feed.form", feed_id=feed.id) }}"><i class="glyphicon glyphicon-edit" title="{{ _('Edit this feed') }}"></i></a> + {% if current_user.is_authenticated %} + <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> + <a href="{{ url_for("feed.form", feed_id=feed.id) }}"><i class="glyphicon glyphicon-edit" title="{{ _('Edit this feed') }}"></i></a> + {% endif %} </div> <div class="well"> <p> @@ -49,20 +51,20 @@ <thead> <tr> <th>{{ _('Article') }}</th> + <th>{{ _('Date') }}</th> </tr> </thead> <tbody> {% for article in articles %} <tr> <td><a href="{{ url_for("article.article_pub", article_id=article.id) }}">{{ article.title }}</a></td> + <td>{{ article.date }}</td> </tr> {% endfor %} </tbody> </table> </div> </div> - - <div class="col-md-4"> {% if articles | count != 0 %} <div>{{ tag_cloud | safe }}</div> |