backup before mayor changes

This commit is contained in:
2026-08-05 16:35:09 -05:00
parent 7b08fcddfa
commit 2d21fddb70
8 changed files with 145 additions and 15 deletions
+3 -1
View File
@@ -297,8 +297,10 @@ def browse(request):
if not tags:
continue
items = []
has_active = False
for tag in tags:
active = tag.name in tag_names
has_active = has_active or active
if active:
remaining = [t for t in tag_names if t != tag.name]
url = f'?{_qs(tag=remaining)}'
@@ -311,7 +313,7 @@ def browse(request):
'active': active,
'url': url,
})
tag_groups.append({'category': cat, 'items': items})
tag_groups.append({'category': cat, 'items': items, 'has_active': has_active})
paginator = Paginator(projects, 12)
page_obj = paginator.get_page(request.GET.get('page'))