alfortville: add a message when there are no mails in tables

This commit is contained in:
Frédéric Péters 2015-10-28 16:37:45 +01:00
parent f32967d84d
commit d7999bf7b2
2 changed files with 21 additions and 0 deletions

View File

@ -5,6 +5,7 @@
{% block content %}
{% if objects %}
<div class="source-mail all">
<div class="cell document top">
<h2>{{title}}</h2>
@ -59,5 +60,21 @@ $(function() {
});
});
</script>
{% else %}
<!-- nothing -->
<div class="source-mail all">
<div class="cell document top">
<h2>{{title}}</h2>
<p class="no-mail-table">
{% trans 'There is currently no mail in this list.' %}
</p>
</div>
</div>
{% endif %}
{% endblock %}

View File

@ -442,3 +442,7 @@ form#note textarea {
top: 2px;
margin-right: 1ex;
}
p.no-mail-table {
padding: 10px;
}