summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOmar Roth <omarroth@hotmail.com>2018-04-07 10:17:31 -0500
committerOmar Roth <omarroth@hotmail.com>2018-04-07 10:17:31 -0500
commit86bf5a62668533450ddb775efbe935c03a812fa3 (patch)
tree27557434ceb5dec024c76b0775e63284f81938f7
parent1a458ee94c77479660853909ebc783af4d992756 (diff)
downloadinvidious-86bf5a62668533450ddb775efbe935c03a812fa3.tar.gz
invidious-86bf5a62668533450ddb775efbe935c03a812fa3.tar.bz2
invidious-86bf5a62668533450ddb775efbe935c03a812fa3.zip
Add notification count
-rw-r--r--src/views/layout.ecr5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/views/layout.ecr b/src/views/layout.ecr
index 1c068350..cf26da3f 100644
--- a/src/views/layout.ecr
+++ b/src/views/layout.ecr
@@ -29,8 +29,9 @@
<div class="pure-g">
<div class="pure-u-1 pure-u-md-1-3">
<a href="/feed/subscriptions" class="pure-menu-heading">
- <% if env.get("notifications").as(Int32) > 0 %>
- <center><i class="fas fa-bell"></i></center>
+ <% notifications = env.get("notifications").as(Int32) %>
+ <% if notifications > 0 %>
+ <center><%= notifications %> <i class="fas fa-bell"></i></center>
<% else %>
<center><i class="far fa-bell"></i></center>
<% end %>