mirror of
https://github.com/iv-org/invidious.git
synced 2024-12-13 01:34:40 -05:00
Add notification count
This commit is contained in:
parent
1a458ee94c
commit
86bf5a6266
@ -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 %>
|
||||
|
Loading…
Reference in New Issue
Block a user