Coverage for gui/templates/gui/ballot_list.html: 100%

31 statements  

« prev     ^ index     » next       coverage.py v7.2.1, created at 2023-03-14 06:24 +0000

1{% extends 'gui/base.html' %} 

2  

3{% block content %}{% load humanize %} 

4 <div class="row"> 

5 <div class="col-md-12"> 

6 <div class="panel panel-default" > 

7 <div class="panel-heading">Ballot history ({{object_list|length}})</div> 

8 <div class="panel-body"> 

9 <table class="table table-striped table-hover table-bordered table-sm sortable" id="suppressed_machine_lst"> 

10 <thead> 

11 <tr> 

12 <th>Name</th> 

13 <th>Opening on</th> 

14 <th>Closing on</th> 

15 </tr> 

16 </thead> 

17 <tbody> 

18 {% for ballot in object_list %} 

19 <tr> 

20 <td><a href="{% url 'ballot-admin' ballot.id %}">{{ballot.short_name}}</a></td> 

21 <td>{{ballot.opening_on|naturaltime}}</td> 

22 <td>{{ballot.closing_on|naturaltime}}</td> 

23 </tr> 

24 {% empty %} 

25 <tr><td colspan="3" class="text-center">No ballots yet</td></tr> 

26 {% endfor %} 

27 </tbody> 

28 </table> 

29 </div> 

30 </div> 

31 </div> 

32 </div> 

33{% endblock %}