invidious-experimenting/src/invidious/views/layout.ecr

74 lines
2.7 KiB
Plaintext
Raw Normal View History

2017-11-23 13:18:55 +05:30
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
2018-02-07 06:22:01 +05:30
<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">
2018-04-14 08:02:14 +05:30
<link rel="stylesheet" href="/css/default.css">
2018-07-16 21:54:24 +05:30
<% if env.get?("user") && env.get("user").as(User).preferences.dark_mode %>
2018-04-14 08:02:14 +05:30
<link rel="stylesheet" href="/css/darktheme.css">
<% else %>
<link rel="stylesheet" href="/css/lighttheme.css">
<% end %>
2018-01-21 22:36:27 +05:30
<%= yield_content "header" %>
2017-11-23 13:18:55 +05:30
</head>
<body>
<div class="pure-g">
2018-02-06 06:11:24 +05:30
<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;">
2018-07-16 21:54:24 +05:30
<div class="pure-u-1 pure-u-md-4-24">
2018-03-26 08:52:57 +05:30
<center><a href="/" class="pure-menu-heading">Invidious</a></center>
</div>
2018-07-16 21:54:24 +05:30
<div class="pure-u-1 pure-u-md-12-24">
<form class="pure-form" action="/search" method="get">
2018-04-14 08:02:14 +05:30
<fieldset>
<input type="search" style="width:100%;" name="q" placeholder="search" value="<%= env.params.query["q"]? %>">
</fieldset>
</form>
</div>
2018-07-16 21:54:24 +05:30
<div class="pure-u-1 pure-u-md-8-24">
<% if env.get? "user" %>
<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>
<% else %>
<center><i class="far fa-bell"></i></center>
<% end %>
</a>
</div>
<div class="pure-u-1-3">
<a href="/preferences" class="pure-menu-heading">
<center><i class="fas fa-cog"></i></center>
</a>
</div>
<div class="pure-u-1-3">
<a href="/signout" class="pure-menu-heading">
<center>Sign out</center>
</a>
</div>
2018-03-25 09:08:35 +05:30
</div>
2018-03-22 23:14:36 +05:30
<% else %>
2018-03-25 09:08:35 +05:30
<center><a href="/login" class="pure-menu-heading">Login</a></center>
2018-03-22 23:14:36 +05:30
<% end %>
2018-03-16 22:10:29 +05:30
</div>
</div>
2017-11-23 13:18:55 +05:30
<%= content %>
2018-03-13 05:07:01 +05:30
<center class="h-box">
2018-01-28 23:02:40 +05:30
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>
2017-11-23 13:18:55 +05:30
</div>
2018-02-06 06:11:24 +05:30
<div class="pure-u-1 pure-u-md-1-5"></div>
2017-11-23 13:18:55 +05:30
</div>
</body>
2018-02-06 06:41:57 +05:30
</html>