From 8bb831a4c3ce3a2e9c0d61a5a058db87a9e408a0 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Tue, 20 Sep 2016 14:48:25 +0200 Subject: Draft for a public user profile page. --- src/web/templates/feed_list.html | 50 +++++++++++++++++++++++----------------- 1 file changed, 29 insertions(+), 21 deletions(-) (limited to 'src/web/templates/feed_list.html') 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 @@ # - {{ _('Status') }} + {% if current_user.is_authenticated and current_user.id == user.id %} + {{ _('Status') }} + {% endif %} {{ _('Title') }} {{ _('Site') }} - {{ _('Articles') }} - {{ _('Actions') }} + {% if current_user.is_authenticated and current_user.id == user.id %} + {{ _('Articles') }} + {{ _('Actions') }} + {% endif %} {% for feed in feeds %} - + {{ loop.index }} - - {% if feed.enabled %} - - {% else %} - - {% endif %} - {% if feed.error_count >= conf.DEFAULT_MAX_ERROR %} - - {% endif %} - + {% if current_user.is_authenticated and current_user.id == user.id %} + + {% if feed.enabled %} + + {% else %} + + {% endif %} + {% if feed.error_count >= conf.DEFAULT_MAX_ERROR %} + + {% endif %} + + {% endif %} {% if feed.icon_url %} {% endif %}{{ feed.title }} {{ feed.site_link }} - ( {{ unread_article_count.get(feed.id, 0) }} ) {{ article_count.get(feed.id, 0) }} - - - - - - + {% if current_user.is_authenticated and current_user.id == user.id %} + ( {{ unread_article_count.get(feed.id, 0) }} ) {{ article_count.get(feed.id, 0) }} + + + + + + + {% endif %} {% endfor %} -- cgit