From 30bf3bf9feac56b7d97d57b55dd95cc0ffe8056e Mon Sep 17 00:00:00 2001 From: Felix Zwettler Date: Sun, 31 Dec 2023 13:26:10 +0100 Subject: [PATCH] ui: different folder icon when opened --- feedi/routes.py | 2 +- feedi/templates/base.html | 4 ++-- feedi/templates/feeds.html | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/feedi/routes.py b/feedi/routes.py index fb5dca70..6f00b7f9 100644 --- a/feedi/routes.py +++ b/feedi/routes.py @@ -142,7 +142,7 @@ def autocomplete(): .filter(models.Feed.folder.icontains(term), models.Feed.user_id == current_user.id).distinct() ).all() - options += [(f, flask.url_for('entry_list', folder=f), 'far fa-folder-open') + options += [(f, flask.url_for('entry_list', folder=f), 'far fa-folder') for f in folders] feed_names = db.session.scalars( diff --git a/feedi/templates/base.html b/feedi/templates/base.html index faf53a63..57ff4da2 100644 --- a/feedi/templates/base.html +++ b/feedi/templates/base.html @@ -20,7 +20,7 @@ {% if shortcut_folders %} {% for folder in shortcut_folders %} - {{ folder }} + {{ folder }} {% endfor %} favorites @@ -71,7 +71,7 @@

feedi

{% for folder in shortcut_folders %}
  • - {{ folder }} + {{ folder }}
  • {% endfor %} {% endif %} diff --git a/feedi/templates/feeds.html b/feedi/templates/feeds.html index 4e635183..52a82a27 100644 --- a/feedi/templates/feeds.html +++ b/feedi/templates/feeds.html @@ -31,7 +31,7 @@

    Feeds

    - {% if feed.folder %} {{ feed.folder }}{% endif %} + {% if feed.folder %} {{ feed.folder }}{% endif %} {% if last_seen %}{{last_seen | humanize}}{% endif %} {{entries}}