mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-04-11.git
synced 2024-08-15 00:43:26 +00:00
Fix notification delivery
This commit is contained in:
parent
a1e96d971d
commit
baa8a66827
1 changed files with 4 additions and 3 deletions
|
@ -36,9 +36,10 @@
|
|||
<div class="pure-g">
|
||||
<div class="pure-u-1-3">
|
||||
<a href="/feed/subscriptions" class="pure-menu-heading">
|
||||
<% notifications = env.get("user").as(User).notifications.size %>
|
||||
<% if notifications > 0 %>
|
||||
<center><%= notifications %> <i class="fas fa-bell"></i></center>
|
||||
<% notification_count = env.get("user").as(User).notifications.size %>
|
||||
<% puts notification_count %>
|
||||
<% if notification_count > 0 %>
|
||||
<center><%= notification_count %> <i class="fas fa-bell"></i></center>
|
||||
<% else %>
|
||||
<center><i class="far fa-bell"></i></center>
|
||||
<% end %>
|
||||
|
|
Loading…
Reference in a new issue