fix: Say when no IRSG ballots exist (#4788)

Fixes #4749
This commit is contained in:
Lars Eggert 2022-11-23 18:01:02 +02:00 committed by GitHub
parent 273b2fab98
commit ba9f44093f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,24 +10,28 @@
{% block content %} {% block content %}
{% origin %} {% origin %}
<h1>IRSG ballot status</h1> <h1>IRSG ballot status</h1>
<table class="table table-sm table-striped tablesorter"> {% if docs %}
<thead> <table class="table table-sm table-striped tablesorter">
<tr> <thead>
<th scope="col" data-sort="doc">Document</th> <tr>
<th scope="col" data-sort="status">Status</th> <th scope="col" data-sort="doc">Document</th>
</tr> <th scope="col" data-sort="status">Status</th>
</thead> </tr>
{% if docs %} </thead>
<tbody> <tbody>
{% for doc in docs %} {% for doc in docs %}
<tr> <tr>
<td>{{ doc.displayname_with_link }}</td> <td>{{ doc.displayname_with_link }}</td>
{% include "doc/search/status_columns.html" %} {% include "doc/search/status_columns.html" %}
</tr> </tr>
{% endfor %} {% endfor %}
</tbody> </tbody>
{% endif %} </table>
</table> {% else %}
<p class="alert alert-info my-3">
No open IRSG ballots.
</p>
{% endif %}
{% endblock %} {% endblock %}
{% block js %} {% block js %}
<script src="{% static "ietf/js/list.js" %}"></script> <script src="{% static "ietf/js/list.js" %}"></script>