Skip to content

Commit 1a8eccf

Browse files
committed
Highlight buttons
1 parent eb68131 commit 1a8eccf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pgcommitfest/commitfest/templates/commitfest.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
{%block contents%}
44

55
<button type="button" class="btn btn-outline-secondary active" id="filterButton" onClick="togglePatchFilterButton('filterButton', 'collapseFilters')">Search/filter</button>
6-
<a class="btn btn-outline-secondary" href="?reviewer=-2">No reviewers</a>
7-
<a class="btn btn-outline-secondary" href="?author=-3">My patches</a>
8-
<a class="btn btn-outline-secondary" href="?reviewer=-3">My reviews</a>
6+
<a class="btn btn-outline-secondary{% if request.GET.reviewer == '-2' %} active{% endif %}" href="?reviewer=-2">No reviewers</a>
7+
<a class="btn btn-outline-secondary{% if request.GET.author == '-3' %} active{% endif %}" href="?author=-3">My patches</a>
8+
<a class="btn btn-outline-secondary{% if request.GET.reviewer == '-3' %} active{% endif %}" href="?reviewer=-3">My reviews</a>
99
{%if cf.is_open or user.is_staff %}
1010
<a class="btn btn-outline-secondary" href="new/">New patch</a>
1111
{%endif%}

0 commit comments

Comments
 (0)