Skip to content

Commit 443850e

Browse files
committed
Show search/filter boxes by default and move status summary below them
- Set filter form to show by default instead of collapsed - Make Search/filter button active by default to match state - Move status summary below the search/filter boxes on homepage - Apply same default behavior to commitfest.html
1 parent c126df3 commit 443850e

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

pgcommitfest/commitfest/templates/commitfest.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{%load commitfest %}
33
{%block contents%}
44

5-
<button type="button" class="btn btn-outline-secondary{%if has_filter%} active{%endif%}" id="filterButton" onClick="togglePatchFilterButton('filterButton', 'collapseFilters')">Search/filter</button>
5+
<button type="button" class="btn btn-outline-secondary active" id="filterButton" onClick="togglePatchFilterButton('filterButton', 'collapseFilters')">Search/filter</button>
66
<div class="btn-group">
77
<button class="btn btn-outline-secondary dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false">Shortcuts</button>
88
<ul class="dropdown-menu">

pgcommitfest/commitfest/templates/filter_form.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{%load commitfest %}
2-
<div id="collapseFilters" class="collapse {%if has_filter%}show{%endif%}">
2+
<div id="collapseFilters" class="collapse show">
33
<form id="filterform" method="GET" action="." style="margin-bottom: 0px">
44
<table class="table" style="margin-bottom: 0px">
55
<thead>

pgcommitfest/commitfest/templates/home.html

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,15 +105,14 @@ <h3>Your Dashboard</h3>
105105

106106
{% if show_dashboard %}
107107

108-
<button type="button" class="btn btn-outline-secondary{%if has_filter%} active{%endif%}" id="filterButton" onClick="togglePatchFilterButton('filterButton', 'collapseFilters')">Search/filter</button>
108+
<button type="button" class="btn btn-outline-secondary active" id="filterButton" onClick="togglePatchFilterButton('filterButton', 'collapseFilters')">Search/filter</button>
109+
110+
{%include "filter_form.html" %}
109111

110112
<p>
111113
<br/>
112114
<b>Status summary: </b>{%for id,title,num in statussummary%}<a href="?status={{id}}">{{title}}</a>: {{num}}. {%endfor%}
113115
</p>
114-
115-
116-
{%include "filter_form.html" %}
117116
{%for p in patches %}
118117
{%ifchanged p.is_open%}
119118
{%if not forloop.first%}

0 commit comments

Comments
 (0)