Private
Public Access
One 5-minute poll (/new-since/) now drives the new-articles banner, the tab dot and the sidebar counts, across all subscriptions rather than the selected feed/tag. The banner lives in the base layout with a server-rendered baseline id and reloads the current view on click; new articles are never inserted automatically. Sidebar counts are patched in place by the poll, and immediately after reading or starring (HX-Trigger: countsChanged). Ingestion, filter rules and subscription changes now drop the cached counts instead of waiting out the TTL. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
28 lines
1.0 KiB
HTML
28 lines
1.0 KiB
HTML
{% extends "base.html" %}
|
|
{% block title %}Stream — Evection{% endblock %}
|
|
{% block content %}
|
|
<div class="stream-toolbar">
|
|
<h1 class="stream-scope-title">
|
|
{% if active_feed %}{{ active_feed.title|default:active_feed.feed_url }}
|
|
{% elif active_tag %}{{ active_tag.name }}
|
|
{% else %}All articles{% endif %}
|
|
</h1>
|
|
|
|
<nav class="filter-tabs">
|
|
{% for key, label in filters %}
|
|
<a href="?filter={{ key }}{% if active_tag %}&tag={{ active_tag.pk }}{% endif %}{% if active_feed %}&feed={{ active_feed.pk }}{% endif %}"
|
|
class="{% if active_filter == key %}active{% endif %}">{{ label }}</a>
|
|
{% endfor %}
|
|
</nav>
|
|
|
|
<form method="post"
|
|
action="{% url 'reader:mark_all_read' %}?filter={{ active_filter }}{% if active_tag %}&tag={{ active_tag.pk }}{% endif %}{% if active_feed %}&feed={{ active_feed.pk }}{% endif %}"
|
|
class="inline-form">
|
|
{% csrf_token %}
|
|
<button type="submit">Mark all as read</button>
|
|
</form>
|
|
</div>
|
|
|
|
{% include "reader/_article_list.html" %}
|
|
{% endblock %}
|