|
|
@ -36,9 +36,10 @@
|
|
|
|
<div class="pure-g">
|
|
|
|
<div class="pure-g">
|
|
|
|
<div class="pure-u-1-3">
|
|
|
|
<div class="pure-u-1-3">
|
|
|
|
<a href="/feed/subscriptions" class="pure-menu-heading">
|
|
|
|
<a href="/feed/subscriptions" class="pure-menu-heading">
|
|
|
|
<% notifications = env.get("user").as(User).notifications.size %>
|
|
|
|
<% notification_count = env.get("user").as(User).notifications.size %>
|
|
|
|
<% if notifications > 0 %>
|
|
|
|
<% puts notification_count %>
|
|
|
|
<center><%= notifications %> <i class="fas fa-bell"></i></center>
|
|
|
|
<% if notification_count > 0 %>
|
|
|
|
|
|
|
|
<center><%= notification_count %> <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 %>
|
|
|
|