backup before mayor changes

This commit is contained in:
JakeBreath
2026-08-05 16:35:09 -05:00
parent f5954247fc
commit 203ff88af1
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'))