Private
Public Access
Subscription editing was a real gap: there was no way to rename a feed's display title, move it between folders, or create a folder at all outside OPML import. Added an edit page (apps/feeds/views.py:edit_subscription, EditSubscriptionForm) reachable from the subscriptions list. Added feed-level tagging via a new SubscriptionTag model (apps/articles/ models.py), mirroring the existing ArticleTag — tag a whole feed on its edit page, and every one of its articles surfaces under that tag in the stream alongside individually-tagged articles (apps.reader.views._apply_ scope now matches either). Renamed AddTagToArticleForm to AddTagForm since it's shared by both now. The stream also now remembers the last filter (unread/all/starred/saved) in the session instead of always defaulting to "unread" when a sidebar feed/folder/tag link omits ?filter= — sidebar links no longer force ?filter=all, letting the remembered choice apply. Verified end to end against a running dev server: editing a subscription's title/folder, creating a folder inline, tagging a feed and seeing its articles appear under that tag, and the remembered-filter behavior across requests with no ?filter= param. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
89 lines
3.6 KiB
HTML
89 lines
3.6 KiB
HTML
<nav class="sidebar" aria-label="Feeds and folders">
|
|
<div class="sidebar-brand">
|
|
<a href="{% url 'reader:stream' %}">Evection</a>
|
|
</div>
|
|
|
|
<a href="{% url 'feeds:subscription_list' %}" class="sidebar-manage-btn">Subscription management</a>
|
|
|
|
<ul class="sidebar-top-nav">
|
|
<li>
|
|
<a href="{% url 'reader:stream' %}?filter=all"
|
|
class="{% if not request.GET.tag and not request.GET.feed and not request.GET.folder and request.GET.filter == 'all' %}active{% endif %}">
|
|
All articles
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a href="{% url 'reader:stream' %}?filter=starred"
|
|
class="{% if request.GET.filter == 'starred' %}active{% endif %}">
|
|
Favourites{% if sidebar_starred_count %} ({{ sidebar_starred_count }}){% endif %}
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a href="{% url 'reader:stream' %}?filter=saved"
|
|
class="{% if request.GET.filter == 'saved' %}active{% endif %}">
|
|
Saved for later
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
|
|
{% if sidebar_tags %}
|
|
<details class="sidebar-section" open>
|
|
<summary>Tags</summary>
|
|
<ul class="sidebar-item-list">
|
|
{% for tag in sidebar_tags %}
|
|
<li>
|
|
<a href="{% url 'reader:stream' %}?tag={{ tag.pk }}"
|
|
class="{% if request.GET.tag == tag.pk|stringformat:'s' %}active{% endif %}">{{ tag.name }}</a>
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</details>
|
|
{% endif %}
|
|
|
|
{% for entry in sidebar_folders %}
|
|
<details class="sidebar-section" open>
|
|
<summary>
|
|
<a href="{% url 'reader:stream' %}?folder={{ entry.folder.pk }}"
|
|
class="sidebar-folder-link{% if request.GET.folder == entry.folder.pk|stringformat:'s' %} active{% endif %}">{{ entry.folder.name }}</a>
|
|
</summary>
|
|
<ul class="sidebar-item-list">
|
|
{% for subscription in entry.subscriptions %}
|
|
<li>
|
|
<a href="{% url 'reader:stream' %}?feed={{ subscription.feed_id }}"
|
|
class="sidebar-feed-link{% if request.GET.feed == subscription.feed_id|stringformat:'s' %} active{% endif %}">
|
|
{% if subscription.feed.favicon_url %}<img src="{{ subscription.feed.favicon_url }}" alt="" class="feed-favicon">{% endif %}
|
|
<span>{{ subscription.display_title }}</span>
|
|
</a>
|
|
{% if subscription.unread_count %}<span class="unread-count">{{ subscription.unread_count }}</span>{% endif %}
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</details>
|
|
{% endfor %}
|
|
|
|
{% if sidebar_unfoldered %}
|
|
<details class="sidebar-section" open>
|
|
<summary>Uncategorized</summary>
|
|
<ul class="sidebar-item-list">
|
|
{% for subscription in sidebar_unfoldered %}
|
|
<li>
|
|
<a href="{% url 'reader:stream' %}?feed={{ subscription.feed_id }}"
|
|
class="sidebar-feed-link{% if request.GET.feed == subscription.feed_id|stringformat:'s' %} active{% endif %}">
|
|
{% if subscription.feed.favicon_url %}<img src="{{ subscription.feed.favicon_url }}" alt="" class="feed-favicon">{% endif %}
|
|
<span>{{ subscription.display_title }}</span>
|
|
</a>
|
|
{% if subscription.unread_count %}<span class="unread-count">{{ subscription.unread_count }}</span>{% endif %}
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</details>
|
|
{% endif %}
|
|
|
|
<ul class="sidebar-top-nav sidebar-footer-nav">
|
|
<li><a href="{% url 'articles:tag_list' %}">Manage tags</a></li>
|
|
<li><a href="{% url 'rules:rule_list' %}">Rules</a></li>
|
|
{% if request.user.is_staff %}<li><a href="{% url 'core:dashboard' %}">Dashboard</a></li>{% endif %}
|
|
<li><a href="{% url 'accounts:logout' %}">Log out</a></li>
|
|
</ul>
|
|
</nav>
|