Skip to content

Commit 24467aa

Browse files
committed
Hide closed patches section for draft commitfests
1 parent fe0e31d commit 24467aa

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

pgcommitfest/commitfest/templates/commitfest.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,16 @@
2222
<b>Status summary: </b>{%for id,title,num in statussummary%}<a href="?status={{id}}">{{title}}</a>: {{num}}. {%endfor%}
2323
</p>
2424

25-
{%for p in patches %}
25+
{%for p in patches %}
2626
{%ifchanged p.is_open%}
27+
{% if not cf.draft or p.is_open %}
2728
{%if not forloop.first%}
2829
</tbody>
2930
</table>
3031
{%endif%}
31-
<h3>{{p.is_open|yesno:"Active patches,Closed patches"}}</h3>
32+
{% if not cf.draft or p.is_open %}
33+
<h3>{{p.is_open|yesno:"Active patches,Closed patches"}}</h3>
34+
{% endif %}
3235
<table class="table table-striped table-bordered table-hover">
3336
<thead>
3437
<tr>

0 commit comments

Comments
 (0)