special galleries: add tests; make special breadcrumb clickable; highlight active special; hide back only

This commit is contained in:
2026-03-27 20:31:43 -04:00
parent 532690a329
commit 5f1035a252
3 changed files with 69 additions and 2 deletions

View File

@@ -185,8 +185,13 @@ def render_image(request, path_text, full_path, special=None):
# Breadcrumbs
if special is not None:
# SPECIAL NAME / IMAGE
from .specials import special_root_url
breadcrumbs = [
{"label": special_name(special), "path": None},
{
"label": special_name(special),
"path": special_root_url(special, query_state),
},
{"label": full_path.name, "path": None},
]
else: