Make unconfirmed benefits a bit more compact
authorMagnus Hagander <magnus@hagander.net>
Mon, 16 Jul 2018 14:46:37 +0000 (16:46 +0200)
committerMagnus Hagander <magnus@hagander.net>
Mon, 16 Jul 2018 14:46:37 +0000 (16:46 +0200)
template/confsponsor/admin_dashboard.html

index ba95bc99129b38a5b06ee358fc1f0f5c2c42bca0..fa53184b2ecc8e9568a4e45bcdf97c66a9cc4395 100644 (file)
@@ -10,19 +10,13 @@ The following benefits have been claimed by sponsors, that have not yet been
 confirmed. You should try to do this ASAP - this may include things like copying
 an image to the website, or making sure there is space for a desk..
 </p>
-{%regroup unconfirmed_benefits by sponsor as unconf%}
 <table class="table table-condensed">
-{%for s in unconf%}
+{%for b in unconfirmed_benefits%}
   <tr>
-    <th colspan="2">{{s.grouper}}</th>
-  </tr>
-{%for b in s.list%}
-  <tr>
-    <td class="col-md-1"></td>
+    <th class="col-md-3">{%ifchanged b.sponsor%}{{b.sponsor}}{%endifchanged%}</th>
     <td><a href="benefit/{{b.id}}/">{{b.benefit}}</a></td>
   </tr>
 {%endfor%}
-{%endfor%}
 </table>
 {%endif%}