AlbumButtonBox: add visual cue to indicate a filter is active

This commit is contained in:
2024-01-15 00:55:33 +01:00
parent accf093935
commit 1f53689e4b
2 changed files with 11 additions and 1 deletions

View File

@@ -55,6 +55,7 @@ class ViewPhotoAlbum extends HTMLController
{
$filters[$contributor['slug']] = [
'id_user' => $contributor['id_user'],
'label' => $contributor['first_name'],
'caption' => sprintf('By %s (%s photos)',
$contributor['first_name'], $contributor['num_assets']),
'link' => $tag->getUrl() . '/?by=' . $contributor['slug'],