Put the correct color on labels in patch viewing
authorMagnus Hagander <magnus@hagander.net>
Sat, 3 Oct 2015 16:40:22 +0000 (18:40 +0200)
committerMagnus Hagander <magnus@hagander.net>
Sat, 3 Oct 2015 16:40:22 +0000 (18:40 +0200)
Pointed out by Andres that the original patch only did the CF
listing, and not the actual patch viewing.

pgcommitfest/commitfest/templates/patch.html

index 36ff04405d8e8a7fa1de6a9e22f53c8dcdbb08bc..6768dd05da8b87dafd149d569d10f807f614c0d0 100644 (file)
@@ -27,7 +27,7 @@
     <tr>
       <th>Status</th>
       <td>{%for c in patch_commitfests %}
-       <div style="margin-bottom: 3px;">{{c.commitfest}}: <span class="label label-default">{{c.statusstring}}</span></div>
+       <div style="margin-bottom: 3px;">{{c.commitfest}}: <span class="label label-{{c.status|patchstatuslabel}}">{{c.statusstring}}</span></div>
        {%endfor%}
       </td>
     </tr>