special galleries: add tests; make special breadcrumb clickable; highlight active special; hide back only
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user