invidious/src/views/layout.ecr
2018-03-24 22:38:35 -05:00

55 lines
1.9 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/custom.css">
<%= 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">
<a href="/" class="pure-menu-heading">Invidious</a>
</div>
<div class="pure-u-1 pure-u-md-3-5">
<form class="pure-form" action="/search" method="get">
<input type="search" style="width:100%;" name="q" placeholder="search" value="<%= env.params.query["q"]? %>">
</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">
<center><i class="far fa-bell"></i></center>
</a>
</div>
<div class="pure-u-1 pure-u-md-2-3">
<a href="/signout" class="pure-menu-heading">Sign out</a>
</div>
</div>
<% else %>
<center><a href="/login" class="pure-menu-heading">Login</a></center>
<% end %>
</div>
</div>
<%= content %>
<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>