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-09-04 19:31:43 +05:30
|
|
|
<meta name="referrer" content="no-referrer">
|
2018-08-04 04:47:19 +05:30
|
|
|
<%= yield_content "header" %>
|
2018-11-09 03:28:10 +05:30
|
|
|
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
|
|
|
|
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
|
|
|
|
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
|
|
|
|
<link rel="manifest" href="/site.webmanifest">
|
|
|
|
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#575757">
|
|
|
|
<meta name="msapplication-TileColor" content="#575757">
|
|
|
|
<meta name="theme-color" content="#575757">
|
2018-11-22 07:30:17 +05:30
|
|
|
<link title="Invidious" type="application/opensearchdescription+xml" rel="search" href="/opensearch.xml">
|
2018-09-06 20:29:17 +05:30
|
|
|
<link rel="stylesheet" href="/css/pure-min.css">
|
|
|
|
<link rel="stylesheet" href="/css/grids-responsive-min.css">
|
|
|
|
<link rel="stylesheet" href="/css/ionicons.min.css">
|
2018-04-14 08:02:14 +05:30
|
|
|
<link rel="stylesheet" href="/css/default.css">
|
2019-02-24 21:19:48 +05:30
|
|
|
<% if env.get?("preferences").try &.as(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 %>
|
2017-11-23 13:18:55 +05:30
|
|
|
</head>
|
|
|
|
|
2018-12-21 03:02:09 +05:30
|
|
|
<% locale = LOCALES[env.get("locale").as(String)]? %>
|
|
|
|
|
2017-11-23 13:18:55 +05:30
|
|
|
<body>
|
|
|
|
<div class="pure-g">
|
2018-09-10 01:20:24 +05:30
|
|
|
<div class="pure-u-1 pure-u-md-2-24"></div>
|
|
|
|
<div class="pure-u-1 pure-u-md-20-24">
|
2018-08-05 09:37:38 +05:30
|
|
|
<div class="pure-g navbar h-box">
|
2018-07-16 21:54:24 +05:30
|
|
|
<div class="pure-u-1 pure-u-md-4-24">
|
2018-07-26 20:16:43 +05:30
|
|
|
<a href="/" class="index-link pure-menu-heading">Invidious</a>
|
2017-12-31 02:52:55 +05:30
|
|
|
</div>
|
2018-07-26 20:16:43 +05:30
|
|
|
<div class="pure-u-1 pure-u-md-12-24 searchbar">
|
2017-12-31 02:52:55 +05:30
|
|
|
<form class="pure-form" action="/search" method="get">
|
2018-04-14 08:02:14 +05:30
|
|
|
<fieldset>
|
2018-11-09 04:57:21 +05:30
|
|
|
<input type="search" style="width:100%;" name="q" placeholder="search" value="<%= env.get?("search").try {|x| HTML.escape(x.as(String)) } || env.params.query["q"]?.try {|x| HTML.escape(x)} %>">
|
2018-04-14 08:02:14 +05:30
|
|
|
</fieldset>
|
2017-12-31 02:52:55 +05:30
|
|
|
</form>
|
|
|
|
</div>
|
2018-07-26 20:16:43 +05:30
|
|
|
<div class="pure-u-1 pure-u-md-8-24 user-field">
|
2018-07-16 21:54:24 +05:30
|
|
|
<% if env.get? "user" %>
|
2018-08-07 22:19:14 +05:30
|
|
|
<div class="pure-u-1-4">
|
2018-08-30 18:44:59 +05:30
|
|
|
<a href="/toggle_theme?referer=<%= env.get?("current_page") %>" class="pure-menu-heading">
|
2018-08-07 22:19:14 +05:30
|
|
|
<% preferences = env.get("user").as(User).preferences %>
|
|
|
|
<% if preferences.dark_mode %>
|
|
|
|
<i class="icon ion-ios-sunny"></i>
|
|
|
|
<% else %>
|
|
|
|
<i class="icon ion-ios-moon"></i>
|
|
|
|
<% end %>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div class="pure-u-1-4">
|
2018-07-26 20:16:43 +05:30
|
|
|
<a href="/feed/subscriptions" class="pure-menu-heading">
|
|
|
|
<% notification_count = env.get("user").as(User).notifications.size %>
|
|
|
|
<% if notification_count > 0 %>
|
2018-07-31 05:08:55 +05:30
|
|
|
<%= notification_count %> <i class="icon ion-ios-notifications"></i>
|
2018-07-26 20:16:43 +05:30
|
|
|
<% else %>
|
2018-07-31 05:08:55 +05:30
|
|
|
<i class="icon ion-ios-notifications-outline"></i>
|
2018-07-26 20:16:43 +05:30
|
|
|
<% end %>
|
|
|
|
</a>
|
|
|
|
</div>
|
2018-08-07 22:19:14 +05:30
|
|
|
<div class="pure-u-1-4">
|
2018-08-30 18:44:59 +05:30
|
|
|
<a href="/preferences?referer=<%= env.get?("current_page") %>" class="pure-menu-heading">
|
2018-07-31 05:08:55 +05:30
|
|
|
<i class="icon ion-ios-cog"></i>
|
2018-07-26 20:16:43 +05:30
|
|
|
</a>
|
|
|
|
</div>
|
2018-08-07 22:19:14 +05:30
|
|
|
<div class="pure-u-1-4">
|
2018-12-21 03:02:09 +05:30
|
|
|
<a href="/signout?referer=<%= env.get?("current_page") %>&token=<%= env.get?("token") %>&challenge=<%= env.get?("challenge") %>" class="pure-menu-heading">
|
|
|
|
<%= translate(locale, "Sign out") %>
|
|
|
|
</a>
|
2018-07-26 20:16:43 +05:30
|
|
|
</div>
|
2018-03-22 23:14:36 +05:30
|
|
|
<% else %>
|
2019-02-24 21:19:48 +05:30
|
|
|
<div class="pure-u-1-3">
|
|
|
|
<a href="/toggle_theme?referer=<%= env.get?("current_page") %>" class="pure-menu-heading">
|
|
|
|
<% if env.get?("preferences").try &.as(Preferences).dark_mode %>
|
|
|
|
<i class="icon ion-ios-sunny"></i>
|
|
|
|
<% else %>
|
|
|
|
<i class="icon ion-ios-moon"></i>
|
|
|
|
<% end %>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div class="pure-u-1-3">
|
|
|
|
<a href="/preferences?referer=<%= env.get?("current_page") %>" class="pure-menu-heading">
|
|
|
|
<i class="icon ion-ios-cog"></i>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div class="pure-u-1-3">
|
2018-12-21 03:02:09 +05:30
|
|
|
<a href="/login?referer=<%= env.get?("current_page") %>" class="pure-menu-heading">
|
|
|
|
<%= translate(locale, "Login") %>
|
|
|
|
</a>
|
2019-02-24 21:19:48 +05:30
|
|
|
</div>
|
2018-03-22 23:14:36 +05:30
|
|
|
<% end %>
|
2018-03-16 22:10:29 +05:30
|
|
|
</div>
|
2017-12-31 02:52:55 +05:30
|
|
|
</div>
|
2017-11-23 13:18:55 +05:30
|
|
|
<%= content %>
|
2018-07-26 20:16:43 +05:30
|
|
|
<div class="footer">
|
2018-12-21 03:02:09 +05:30
|
|
|
<p>
|
|
|
|
<a href="https://github.com/omarroth">
|
|
|
|
<%= translate(locale, "Released under the AGPLv3 by Omar Roth.") %>
|
|
|
|
</a>
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<a href="https://github.com/omarroth/invidious">
|
|
|
|
<%= translate(locale, "Source available here.") %>
|
|
|
|
</a>
|
|
|
|
</p>
|
|
|
|
<p><%= translate(locale, "Liberapay: ") %>
|
2018-08-26 02:13:39 +05:30
|
|
|
<a href="https://liberapay.com/omarroth">
|
|
|
|
https://liberapay.com/omarroth
|
|
|
|
</a>
|
|
|
|
</p>
|
2018-12-21 03:02:09 +05:30
|
|
|
<p><%= translate(locale, "Patreon: ") %>
|
2018-08-16 07:06:21 +05:30
|
|
|
<a href="https://patreon.com/omarroth">
|
|
|
|
https://patreon.com/omarroth
|
|
|
|
</a>
|
|
|
|
</p>
|
2018-12-21 03:02:09 +05:30
|
|
|
<p><%= translate(locale, "BTC: ") %>356DpZyMXu6rYd55Yqzjs29n79kGKWcYrY</p>
|
|
|
|
<p><%= translate(locale, "BCH: ") %>qq4ptclkzej5eza6a50et5ggc58hxsq5aylqut2npk</p>
|
|
|
|
<p>
|
|
|
|
<a rel="jslicense" href="/licenses">
|
|
|
|
<%= translate(locale, "View JavaScript license information.") %>
|
|
|
|
</a>
|
|
|
|
</p>
|
2018-07-26 20:16:43 +05:30
|
|
|
</div>
|
2017-11-23 13:18:55 +05:30
|
|
|
</div>
|
2018-09-10 01:20:24 +05:30
|
|
|
<div class="pure-u-1 pure-u-md-2-24"></div>
|
2018-11-05 19:01:18 +05:30
|
|
|
</div>
|
2017-11-23 13:18:55 +05:30
|
|
|
</body>
|
|
|
|
|
2018-02-06 06:41:57 +05:30
|
|
|
</html>
|