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>
26 lines
645 B
Python
26 lines
645 B
Python
from django.urls import path
|
|
|
|
from . import views
|
|
|
|
app_name = "articles"
|
|
|
|
urlpatterns = [
|
|
path("tags/", views.tag_list, name="tag_list"),
|
|
path("tags/<int:tag_id>/delete/", views.delete_tag, name="delete_tag"),
|
|
path(
|
|
"articles/<int:article_id>/tags/",
|
|
views.article_tags_partial,
|
|
name="article_tags_partial",
|
|
),
|
|
path(
|
|
"articles/<int:article_id>/tags/add/",
|
|
views.add_tag_to_article,
|
|
name="add_tag_to_article",
|
|
),
|
|
path(
|
|
"articles/<int:article_id>/tags/<int:tag_id>/remove/",
|
|
views.remove_tag_from_article,
|
|
name="remove_tag_from_article",
|
|
),
|
|
]
|