Add button for New Patch to top of page
authorMagnus Hagander <magnus@hagander.net>
Tue, 9 Feb 2016 12:59:50 +0000 (13:59 +0100)
committerMagnus Hagander <magnus@hagander.net>
Tue, 9 Feb 2016 12:59:50 +0000 (13:59 +0100)
Per request during Brussels developer meeting

pgcommitfest/commitfest/templates/commitfest.html

index 09b82ac6ec81a2260cf8bf3729403e0bc5b5c1b9..c4165669222e154861ebf4b8158a76d274b20070 100644 (file)
@@ -11,6 +11,9 @@
     <li><a href="?reviewer=-3">Patches where you are reviewer</a></li>
   </ul>
 </div>
+{%if cf.isopen or user.is_staff %}
+<a class="btn btn-default" href="new/">New patch</a>
+{%endif%}
 <div id="collapseFilters" class="collapse {%if has_filter%}in{%endif%}">
     <form id="filterform" method="GET" action="." style="margin-bottom: 0px">
       <table class="table table-condensed" style="margin-bottom: 0px">