aboutsummaryrefslogtreecommitdiff
path: root/app/templates/base.html
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2018-05-18 00:33:24 +0100
committerrubenwardy <rw@rubenwardy.com>2018-05-18 00:33:24 +0100
commitc1672a413b80ecb536d7490b8bb1494803896c66 (patch)
treed017220500a7146e5636817a3173b83b8e909c2e /app/templates/base.html
parentfe53b6f3f3c49d4ad152516ed367c1005df0a50a (diff)
downloadcheatdb-c1672a413b80ecb536d7490b8bb1494803896c66.tar.xz
Add notification icon
Diffstat (limited to 'app/templates/base.html')
-rw-r--r--app/templates/base.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/templates/base.html b/app/templates/base.html
index 050448b..bc2f047 100644
--- a/app/templates/base.html
+++ b/app/templates/base.html
@@ -41,7 +41,9 @@
</ul>
<ul class="nav navbar-nav navbar-right">
{% if current_user.is_authenticated %}
- <li><a href="{{ url_for('notifications_page') }}">({{ current_user.notifications | length }})</a></li>
+ <li><a href="{{ url_for('notifications_page') }}">
+ <img src="/static/notification{% if current_user.notifications %}_alert{% endif %}.svg" />
+ </a></li>
<li><a href="{{ url_for('create_edit_package_page') }}">+</a></li>
<li class="dropdown">
<a href="{{ url_for('user_profile_page', username=current_user.username) }}"