|
|
@ -20,51 +20,49 @@
|
|
|
|
<div class="pure-g">
|
|
|
|
<div class="pure-g">
|
|
|
|
<div class="pure-u-1 pure-u-md-1-5"></div>
|
|
|
|
<div class="pure-u-1 pure-u-md-1-5"></div>
|
|
|
|
<div class="pure-u-1 pure-u-md-3-5">
|
|
|
|
<div class="pure-u-1 pure-u-md-3-5">
|
|
|
|
<div class="pure-g" style="padding:1em;">
|
|
|
|
<div class="pure-g navbar">
|
|
|
|
<div class="pure-u-1 pure-u-md-4-24">
|
|
|
|
<div class="pure-u-1 pure-u-md-4-24">
|
|
|
|
<center><a href="/" class="pure-menu-heading">Invidious</a></center>
|
|
|
|
<a href="/" class="index-link pure-menu-heading">Invidious</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="pure-u-1 pure-u-md-12-24">
|
|
|
|
<div class="pure-u-1 pure-u-md-12-24 searchbar">
|
|
|
|
<form class="pure-form" action="/search" method="get">
|
|
|
|
<form class="pure-form" action="/search" method="get">
|
|
|
|
<fieldset>
|
|
|
|
<fieldset>
|
|
|
|
<input type="search" style="width:100%;" name="q" placeholder="search" value="<%= env.params.query["q"]? %>">
|
|
|
|
<input type="search" style="width:100%;" name="q" placeholder="search" value="<%= env.params.query["q"]? %>">
|
|
|
|
</fieldset>
|
|
|
|
</fieldset>
|
|
|
|
</form>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="pure-u-1 pure-u-md-8-24">
|
|
|
|
<div class="pure-u-1 pure-u-md-8-24 user-field">
|
|
|
|
<% if env.get? "user" %>
|
|
|
|
<% if env.get? "user" %>
|
|
|
|
<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">
|
|
|
|
<% notification_count = env.get("user").as(User).notifications.size %>
|
|
|
|
<% notification_count = env.get("user").as(User).notifications.size %>
|
|
|
|
<% if notification_count > 0 %>
|
|
|
|
<% if notification_count > 0 %>
|
|
|
|
<%= notification_count %> <i class="fas fa-bell"></i>
|
|
|
|
<center><%= notification_count %> <i class="fas fa-bell"></i></center>
|
|
|
|
<% else %>
|
|
|
|
<% else %>
|
|
|
|
<i class="far fa-bell"></i>
|
|
|
|
<center><i class="far fa-bell"></i></center>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="pure-u-1-3">
|
|
|
|
<div class="pure-u-1-3">
|
|
|
|
<a href="/preferences" class="pure-menu-heading">
|
|
|
|
<a href="/preferences" class="pure-menu-heading">
|
|
|
|
<i class="fas fa-cog"></i>
|
|
|
|
<center><i class="fas fa-cog"></i></center>
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="pure-u-1-3">
|
|
|
|
<div class="pure-u-1-3">
|
|
|
|
<a href="/signout" class="pure-menu-heading">Sign out</a>
|
|
|
|
<a href="/signout" class="pure-menu-heading">
|
|
|
|
</div>
|
|
|
|
<center>Sign out</center>
|
|
|
|
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<% else %>
|
|
|
|
<% else %>
|
|
|
|
<center><a href="/login" class="pure-menu-heading">Login</a></center>
|
|
|
|
<a href="/login" class="pure-menu-heading">Login</a>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<%= content %>
|
|
|
|
<%= content %>
|
|
|
|
<center class="h-box">
|
|
|
|
<div class="footer">
|
|
|
|
Released under AGPLv3 by <a href="https://github.com/omarroth">Omar Roth</a> -
|
|
|
|
Released under AGPLv3 by <a href="https://github.com/omarroth">Omar
|
|
|
|
source available <a href="https://github.com/omarroth/invidious">here</a>
|
|
|
|
Roth</a>.
|
|
|
|
</center>
|
|
|
|
Source available <a
|
|
|
|
|
|
|
|
href="https://github.com/omarroth/invidious">here</a>.
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="pure-u-1 pure-u-md-1-5"></div>
|
|
|
|
<div class="pure-u-1 pure-u-md-1-5"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|