From 575c687b8549f2e655bc008fe0a07fbdad32845a Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Mon, 30 Mar 2020 13:57:56 +0200 Subject: display feeds icon in public pages for feeds --- newspipe/templates/feed.html | 5 ++++- newspipe/templates/home.html | 6 +++--- newspipe/templates/user_stream.html | 4 +++- newspipe/web/views/user.py | 2 +- 4 files changed, 11 insertions(+), 6 deletions(-) diff --git a/newspipe/templates/feed.html b/newspipe/templates/feed.html index af58e939..34312980 100644 --- a/newspipe/templates/feed.html +++ b/newspipe/templates/feed.html @@ -2,7 +2,10 @@ {% block content %}
-

{{ feed.title }}

+

+ + {{ feed.title }} +

{% if feed.description %}

{{ feed.description }}

{% endif %} {% if current_user.is_authenticated %} diff --git a/newspipe/templates/home.html b/newspipe/templates/home.html index d941adbc..3238ad9e 100644 --- a/newspipe/templates/home.html +++ b/newspipe/templates/home.html @@ -102,7 +102,7 @@ {% endif%} {% if not feed_id %} - {{ _('Feed') }} + {{ _('Feed') }} {% endif %} {{ _('Article') }} {{ _('Date') }} @@ -126,7 +126,7 @@ {% endif %} {% if not feed_id %} - + {{ article.source.title | safe }} @@ -135,7 +135,7 @@ {{ article.title | safe }} - {{ article.date | datetime(format='short') }} + {{ article.date | datetime(format='short') }} {% endfor %} diff --git a/newspipe/templates/user_stream.html b/newspipe/templates/user_stream.html index 2cf0ab7a..87a3698b 100644 --- a/newspipe/templates/user_stream.html +++ b/newspipe/templates/user_stream.html @@ -53,7 +53,9 @@ {% for article in articles %} {{ loop.index }} - {{ article.title }} + + {{ article.title }} + {{ article.date }} {% endfor %} diff --git a/newspipe/web/views/user.py b/newspipe/web/views/user.py index 4e34bbeb..f4f26b71 100644 --- a/newspipe/web/views/user.py +++ b/newspipe/web/views/user.py @@ -73,7 +73,7 @@ def user_stream(per_page, nickname=None): filters["feed_id__in"] = [feed.id for feed in feeds] if category: filters["category_id"] = category_id - articles = ArticleController(user.id).read_light(**filters) + articles = ArticleController(user.id).read(**filters) # Server-side pagination page, per_page, offset = get_page_args(per_page_parameter="per_page") -- cgit