Private
Public Access
Implements tag management (create/delete) and per-article tagging with a freeform "add tag" input that creates the tag on first use instead of requiring a separate create-then-assign flow. Tags render as pills in the stream header; clicking one filters the stream to articles carrying that tag, combinable with the existing read/starred/saved filters. The "Saved" filter already added in the reading-UI milestone functions as the reading list, so this closes out the reading-list/tags milestone without a separate dedicated view. Verified live in-browser: creating a tag from an article, the pill appearing in the stream nav, filtering by it, and deleting it from the tag-management page, all via htmx without full page reloads. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
27 lines
930 B
HTML
27 lines
930 B
HTML
{% extends "base.html" %}
|
|
{% block title %}{{ article.title|default:"Article" }} — Evection{% endblock %}
|
|
{% block content %}
|
|
<p><a href="{% url 'reader:stream' %}">← Back to stream</a></p>
|
|
|
|
<article>
|
|
<h1>{{ article.title|default:"(untitled)" }}</h1>
|
|
<p class="article-meta">
|
|
{{ article.feed.title }} · {{ article.published_at|date:"M j, Y H:i" }}
|
|
{% if article.author %} · {{ article.author }}{% endif %}
|
|
{% if article.link %} · <a href="{{ article.link }}" target="_blank" rel="noopener noreferrer">Original</a>{% endif %}
|
|
</p>
|
|
|
|
{% include "reader/_article_actions.html" %}
|
|
|
|
<div
|
|
id="article-tags-{{ article.pk }}"
|
|
hx-get="{% url 'articles:article_tags_partial' article.pk %}"
|
|
hx-trigger="load"
|
|
hx-swap="outerHTML"></div>
|
|
|
|
<div class="article-content">
|
|
{{ article.content_html|safe }}
|
|
</div>
|
|
</article>
|
|
{% endblock %}
|