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