Use in-table style for null states
This commit is contained in:
parent
c5746bbce0
commit
67a4b2713a
|
@ -48,11 +48,10 @@
|
||||||
<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>
|
|
||||||
|
|
||||||
{% if not announcements %}
|
{% if not announcements %}
|
||||||
<p><em>{% trans "No announcements found." %}</em></p>
|
<tr><td colspan="5"><em>{% trans "No announcements found" %}</em></td></tr>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% include 'snippets/pagination.html' with page=announcements path=request.path %}
|
{% include 'snippets/pagination.html' with page=announcements path=request.path %}
|
||||||
|
|
|
@ -55,11 +55,11 @@
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
{% if not domains.exists %}
|
||||||
|
<tr><td colspan="5"><em>{% trans "No email domains currently blocked" %}</em></td></tr>
|
||||||
|
{% endif %}
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
{% if not domains.exists %}
|
|
||||||
<p><em>No email domains currenly blocked.</em></p>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
|
|
@ -59,13 +59,11 @@
|
||||||
<td>{{ server.get_status_display }}</td>
|
<td>{{ server.get_status_display }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
{% if not servers %}
|
||||||
|
<tr><td colspan="5"><em>{% trans "No instances found" %}</em></td></tr>
|
||||||
|
{% endif %}
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
{% if not servers %}
|
|
||||||
<div class="block">
|
|
||||||
<em>{% trans "No instances found." %}</em>
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% include 'snippets/pagination.html' with page=servers path=request.path %}
|
{% include 'snippets/pagination.html' with page=servers path=request.path %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -47,7 +47,7 @@
|
||||||
<th>{% trans "Action" %}</th>
|
<th>{% trans "Action" %}</th>
|
||||||
</tr>
|
</tr>
|
||||||
{% if not requests %}
|
{% if not requests %}
|
||||||
<tr><td colspan="4">{% trans "No requests" %}</td></tr>
|
<tr><td colspan="5"><em>{% trans "No requests" %}</em></td></tr>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% for req in requests %}
|
{% for req in requests %}
|
||||||
<tr>
|
<tr>
|
||||||
|
|
|
@ -42,9 +42,9 @@
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</table>
|
|
||||||
{% if not addresses.exists %}
|
{% if not addresses.exists %}
|
||||||
<p><em>{% trans "No IP addresses currently blocked." %}</em></p>
|
<tr><td colspan="2"><em>{% trans "No IP addresses currently blocked" %}</em></td></tr>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
</table>
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
Loading…
Reference in New Issue