Add notification count

This commit is contained in:
Omar Roth 2018-04-07 10:17:31 -05:00
parent 1a458ee94c
commit 86bf5a6266
1 changed files with 3 additions and 2 deletions

View File

@ -29,8 +29,9 @@
<div class="pure-g"> <div class="pure-g">
<div class="pure-u-1 pure-u-md-1-3"> <div class="pure-u-1 pure-u-md-1-3">
<a href="/feed/subscriptions" class="pure-menu-heading"> <a href="/feed/subscriptions" class="pure-menu-heading">
<% if env.get("notifications").as(Int32) > 0 %> <% notifications = env.get("notifications").as(Int32) %>
<center><i class="fas fa-bell"></i></center> <% if notifications > 0 %>
<center><%= notifications %> <i class="fas fa-bell"></i></center>
<% else %> <% else %>
<center><i class="far fa-bell"></i></center> <center><i class="far fa-bell"></i></center>
<% end %> <% end %>