From: Brandon Lo Date: Mon, 8 Jul 2019 15:07:49 +0000 (-0400) Subject: Add 'no messages available' to empty inbox X-Git-Tag: 2.0.99~65^2 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F98%2F68198%2F1;p=laas.git Add 'no messages available' to empty inbox Added a simple check to see if the list element had no children, and if so, it would add a simple message saying that no messages are available. Change-Id: I6f3d40a6355502bc621ce4d19f556d4733877200 Signed-off-by: Brandon Lo --- diff --git a/src/templates/notifier/inbox.html b/src/templates/notifier/inbox.html index 9d7b426..26b6d32 100644 --- a/src/templates/notifier/inbox.html +++ b/src/templates/notifier/inbox.html @@ -18,6 +18,7 @@
+ No messages available
{% for notification in unread_notifications %} {% endblock %} \ No newline at end of file