Null state text for announcements view

This commit is contained in:
Mouse Reeve 2021-09-12 10:14:56 -07:00
parent 0f31586ab6
commit e24f2ea8c1

View file

@ -14,7 +14,8 @@
{% include 'settings/announcement_form.html' with controls_text="create_announcement" %} {% include 'settings/announcement_form.html' with controls_text="create_announcement" %}
</form> </form>
<table class="table is-striped"> <div class="block">
<table class="table is-striped">
<tr> <tr>
<th> <th>
{% url 'settings-announcements' as url %} {% url 'settings-announcements' as url %}
@ -47,7 +48,12 @@
<td>{% if announcement.active %}{% trans "active" %}{% else %}{% trans "inactive" %}{% endif %}</td> <td>{% if announcement.active %}{% trans "active" %}{% else %}{% trans "inactive" %}{% endif %}</td>
</tr> </tr>
{% endfor %} {% endfor %}
</table> </table>
{% if not announcements %}
<p><em>{% trans "No announcements found." %}</em></p>
{% endif %}
</div>
{% include 'snippets/pagination.html' with page=announcements path=request.path %} {% include 'snippets/pagination.html' with page=announcements path=request.path %}
{% endblock %} {% endblock %}