]> WPIA git - motion.git/blobdiff - templates/proxy.html
Merge branch 'user_host' into 'master'
[motion.git] / templates / proxy.html
index 259606e6441e67001daeeac7f5e6da8d3bef2aaf..f1cd89a62bb813c84e97e628f14c3c6d57c7a260 100644 (file)
@@ -29,7 +29,6 @@
   </tr>
   </table>
 </form>
-{%- if proxies %}
 <form action="/proxy/revoke" method="POST">
 <div class="motion card" id="votes">
   <div class="card-heading text-white bg-info">
@@ -42,6 +41,7 @@
         <th>{{_('Proxy')}}</th>
         <th></th>
       </thead>
+      {%- if proxies %}
       {%- for row in proxies %}
       <tr>
         <td>{{row.voter_email}}</td>
         <td><button type="submit" class="btn btn-danger" name="id" value="{{row.id}}">{{_('Revoke')}}</button></td>
       </tr>
       {%- endfor %}
+      {%- endif %}
     </table>
   </div>
 </div>
 </form>
-{%- endif %}
 <form action="/proxy/revokeall" method="POST">
   <button type="submit" class="btn btn-danger">{{_('Revoke all')}}</button>
 </form>