Skip to content

Commit 831bcb9

Browse files
committed
Add some buttons for filtering to the dashboard on the homepage
1 parent de5bc24 commit 831bcb9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pgcommitfest/commitfest/templates/home.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,11 @@ <h3>Your Dashboard</h3>
105105

106106
{% if show_dashboard %}
107107

108+
<button type="button" class="btn btn-secondary active" id="filterButton" onClick="togglePatchFilterButton('filterButton', 'collapseFilters')">Search/filter</button>
109+
{%if user.is_authenticated%}
110+
<a class="btn btn-secondary{% if request.GET.author == '-3' %} active{% endif %}" href="?author=-3">My patches</a>
111+
<a class="btn btn-secondary{% if request.GET.reviewer == '-3' %} active{% endif %}" href="?reviewer=-3">My reviews</a>
112+
{%endif%}
108113
{%include "filter_form.html" %}
109114

110115
<p>

0 commit comments

Comments
 (0)