Skip to content

Commit eb68131

Browse files
committed
Replace shortcuts dropdown with shorter button labels
Convert the shortcuts dropdown menu to individual buttons with concise text: - 'No reviewers' (was 'Patches with no reviewers') - 'My patches' (was 'Patches where you are author') - 'My reviews' (was 'Patches where you are reviewer') This makes the shortcuts more immediately visible and saves space.
1 parent 443850e commit eb68131

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

pgcommitfest/commitfest/templates/commitfest.html

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +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-
<div class="btn-group">
7-
<button class="btn btn-outline-secondary dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false">Shortcuts</button>
8-
<ul class="dropdown-menu">
9-
<li><a class="dropdown-item" href="?reviewer=-2">Patches with no reviewers</a></li>
10-
<li><a class="dropdown-item" href="?author=-3">Patches where you are author</a></li>
11-
<li><a class="dropdown-item" href="?reviewer=-3">Patches where you are reviewer</a></li>
12-
</ul>
13-
</div>
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>
149
{%if cf.is_open or user.is_staff %}
1510
<a class="btn btn-outline-secondary" href="new/">New patch</a>
1611
{%endif%}

0 commit comments

Comments
 (0)