backup before mayor changes
This commit is contained in:
@@ -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'))
|
||||
|
||||
Reference in New Issue
Block a user