FreedomBox/plinth/templates/notifications-dropdown.html
Sunil Mohan Adapa 8529022f63
notification: Show a drop down from main navbar for notifications
Closes: #1042.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2020-02-10 18:13:28 -05:00

37 lines
1.3 KiB
HTML

{% comment %}
#
# This file is part of FreedomBox.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
{% endcomment %}
{# Template to display a drop down button for notifications in the navbar #}
{% load i18n %}
{% if notifications %}
<li class="dropdown notifications-dropdown">
<a href="#" title="{% trans "Notifications" %}" class="dropdown-toggle"
data-toggle="dropdown" role="button" aria-expanded="false"
data-target=".notifications">
<span class="fa fa-bell nav-icon"></span>
<span class="badge badge-{{ notifications_max_severity }}">
{{ notifications|length }}
</span>
<span class="caret"></span>
</a>
</li>
{% endif %}