74 lines
2.6 KiB
Plaintext
74 lines
2.6 KiB
Plaintext
<!DOCTYPE html>
|
|
<html>
|
|
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<link rel="stylesheet" href="https://unpkg.com/purecss@1.0.0/build/pure-min.css">
|
|
<link rel="stylesheet" href="https://unpkg.com/purecss@1.0.0/build/grids-responsive-min.css">
|
|
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.6/css/all.css">
|
|
<link rel="stylesheet" href="/css/default.css">
|
|
<% if env.get? "darktheme" %>
|
|
<link rel="stylesheet" href="/css/darktheme.css">
|
|
<% else %>
|
|
<link rel="stylesheet" href="/css/lighttheme.css">
|
|
<% end %>
|
|
<%= yield_content "header" %>
|
|
</head>
|
|
|
|
<body>
|
|
<div class="pure-g">
|
|
<div class="pure-u-1 pure-u-md-1-5"></div>
|
|
<div class="pure-u-1 pure-u-md-3-5">
|
|
<div class="pure-g" style="padding:1em;">
|
|
<div class="pure-u-1 pure-u-md-1-5">
|
|
<center><a href="/" class="pure-menu-heading">Invidious</a></center>
|
|
</div>
|
|
<div class="pure-u-1 pure-u-md-3-5">
|
|
<form class="pure-form" action="/search" method="get">
|
|
<fieldset>
|
|
<input type="search" style="width:100%;" name="q" placeholder="search" value="<%= env.params.query["q"]? %>">
|
|
</fieldset>
|
|
</form>
|
|
</div>
|
|
<div class="pure-u-1 pure-u-md-1-5">
|
|
<% if env.get? "authorized" %>
|
|
<div class="pure-g">
|
|
<div class="pure-u-1 pure-u-md-1-3">
|
|
<a href="/feed/subscriptions" class="pure-menu-heading">
|
|
<% 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 %>
|
|
</a>
|
|
</div>
|
|
<div class="pure-u-1 pure-u-md-2-3">
|
|
<center><a href="/signout" class="pure-menu-heading">Sign out</a></center>
|
|
</div>
|
|
</div>
|
|
<% else %>
|
|
<center><a href="/login" class="pure-menu-heading">Login</a></center>
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
<%= content %>
|
|
<center class="h-box">
|
|
<% if env.get? "darktheme" %>
|
|
<a href="/modify_theme?light">Light theme</a>
|
|
<% else %>
|
|
<a href="/modify_theme?dark">Dark theme</a>
|
|
<% end %>
|
|
</center>
|
|
<center class="h-box">
|
|
Released under AGPLv3 by <a href="https://github.com/omarroth">Omar Roth</a> -
|
|
source available <a href="https://github.com/omarroth/invidious">here</a>
|
|
</center>
|
|
</div>
|
|
<div class="pure-u-1 pure-u-md-1-5"></div>
|
|
</div>
|
|
</body>
|
|
|
|
</html>
|