2017-11-23 07:48:55 +00:00
|
|
|
<!DOCTYPE html>
|
2019-04-28 14:17:35 +00:00
|
|
|
<html lang="<%= env.get("preferences").as(Preferences).locale %>">
|
2017-11-23 07:48:55 +00:00
|
|
|
|
|
|
|
<head>
|
2019-04-16 04:23:40 +00:00
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
|
<%= yield_content "header" %>
|
2019-05-09 16:52:37 +00:00
|
|
|
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png?v=<%= ASSET_COMMIT %>">
|
|
|
|
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png?v=<%= ASSET_COMMIT %>">
|
|
|
|
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png?v=<%= ASSET_COMMIT %>">
|
|
|
|
<link rel="manifest" href="/site.webmanifest?v=<%= ASSET_COMMIT %>">
|
|
|
|
<link rel="mask-icon" href="/safari-pinned-tab.svg?v=<%= ASSET_COMMIT %>" color="#575757">
|
2019-04-16 04:23:40 +00:00
|
|
|
<meta name="msapplication-TileColor" content="#575757">
|
|
|
|
<meta name="theme-color" content="#575757">
|
|
|
|
<link title="Invidious" type="application/opensearchdescription+xml" rel="search" href="/opensearch.xml">
|
2019-05-09 16:52:37 +00:00
|
|
|
<link rel="stylesheet" href="/css/pure-min.css?v=<%= ASSET_COMMIT %>">
|
|
|
|
<link rel="stylesheet" href="/css/grids-responsive-min.css?v=<%= ASSET_COMMIT %>">
|
|
|
|
<link rel="stylesheet" href="/css/ionicons.min.css?v=<%= ASSET_COMMIT %>">
|
|
|
|
<link rel="stylesheet" href="/css/default.css?v=<%= ASSET_COMMIT %>">
|
2017-11-23 07:48:55 +00:00
|
|
|
</head>
|
|
|
|
|
2019-03-11 17:44:25 +00:00
|
|
|
<% locale = LOCALES[env.get("preferences").as(Preferences).locale]? %>
|
2020-11-16 03:19:41 +00:00
|
|
|
<% dark_mode = env.get("preferences").as(Preferences).dark_mode %>
|
2018-12-20 21:32:09 +00:00
|
|
|
|
2020-11-16 03:19:41 +00:00
|
|
|
<body class="<%= dark_mode.blank? ? "no" : dark_mode %>-theme">
|
2019-08-15 16:29:55 +00:00
|
|
|
<span style="display:none" id="dark_mode_pref"><%= env.get("preferences").as(Preferences).dark_mode %></span>
|
2019-04-16 04:23:40 +00:00
|
|
|
<div class="pure-g">
|
|
|
|
<div class="pure-u-1 pure-u-md-2-24"></div>
|
2021-04-07 06:53:38 +00:00
|
|
|
<div class="pure-u-1 pure-u-md-20-24", id="contents">
|
2019-04-16 04:23:40 +00:00
|
|
|
<div class="pure-g navbar h-box">
|
2021-04-17 12:18:58 +00:00
|
|
|
<% if navbar_search %>
|
2021-04-04 04:32:30 +00:00
|
|
|
<div class="pure-u-1 pure-u-md-4-24">
|
|
|
|
<a href="/" class="index-link pure-menu-heading">Invidious</a>
|
|
|
|
</div>
|
|
|
|
<div class="pure-u-1 pure-u-md-12-24 searchbar">
|
|
|
|
<form class="pure-form" action="/search" method="get">
|
|
|
|
<fieldset>
|
|
|
|
<input type="search" style="width:100%" name="q" placeholder="<%= translate(locale, "search") %>" value="<%= env.get?("search").try {|x| HTML.escape(x.as(String)) } %>">
|
|
|
|
</fieldset>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
|
2019-04-16 04:23:40 +00:00
|
|
|
<div class="pure-u-1 pure-u-md-8-24 user-field">
|
2019-05-02 01:03:39 +00:00
|
|
|
<% if env.get? "user" %>
|
|
|
|
<div class="pure-u-1-4">
|
2019-05-05 12:34:27 +00:00
|
|
|
<a id="toggle_theme" href="/toggle_theme?referer=<%= env.get?("current_page") %>" class="pure-menu-heading">
|
2019-08-15 16:29:55 +00:00
|
|
|
<% if env.get("preferences").as(Preferences).dark_mode == "dark" %>
|
2019-05-02 01:03:39 +00:00
|
|
|
<i class="icon ion-ios-sunny"></i>
|
|
|
|
<% else %>
|
|
|
|
<i class="icon ion-ios-moon"></i>
|
|
|
|
<% end %>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div class="pure-u-1-4">
|
2019-05-05 12:46:01 +00:00
|
|
|
<a id="notification_ticker" title="<%= translate(locale, "Subscriptions") %>" href="/feed/subscriptions" class="pure-menu-heading">
|
2019-05-02 01:03:39 +00:00
|
|
|
<% notification_count = env.get("user").as(User).notifications.size %>
|
|
|
|
<% if notification_count > 0 %>
|
2019-05-05 12:46:01 +00:00
|
|
|
<span id="notification_count"><%= notification_count %></span> <i class="icon ion-ios-notifications"></i>
|
2019-05-02 01:03:39 +00:00
|
|
|
<% else %>
|
|
|
|
<i class="icon ion-ios-notifications-outline"></i>
|
|
|
|
<% end %>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div class="pure-u-1-4">
|
|
|
|
<a title="<%= translate(locale, "Preferences") %>" 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-4">
|
|
|
|
<form action="/signout?referer=<%= env.get?("current_page") %>" method="post">
|
2019-09-24 17:31:33 +00:00
|
|
|
<input type="hidden" name="csrf_token" value="<%= URI.encode_www_form(env.get?("csrf_token").try &.as(String) || "") %>">
|
2019-05-02 01:03:39 +00:00
|
|
|
<a class="pure-menu-heading" href="#">
|
|
|
|
<input style="all:unset" type="submit" value="<%= translate(locale, "Log out") %>">
|
|
|
|
</a>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<% else %>
|
|
|
|
<div class="pure-u-1-3">
|
2019-05-05 12:34:27 +00:00
|
|
|
<a id="toggle_theme" href="/toggle_theme?referer=<%= env.get?("current_page") %>" class="pure-menu-heading">
|
2019-08-15 16:29:55 +00:00
|
|
|
<% if env.get("preferences").as(Preferences).dark_mode == "dark" %>
|
2019-05-02 01:03:39 +00:00
|
|
|
<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 title="<%= translate(locale, "Preferences") %>" href="/preferences?referer=<%= env.get?("current_page") %>" class="pure-menu-heading">
|
|
|
|
<i class="icon ion-ios-cog"></i>
|
|
|
|
</a>
|
|
|
|
</div>
|
2021-01-23 18:39:04 +00:00
|
|
|
<% if CONFIG.login_enabled %>
|
2019-05-02 01:03:39 +00:00
|
|
|
<div class="pure-u-1-3">
|
|
|
|
<a href="/login?referer=<%= env.get?("current_page") %>" class="pure-menu-heading">
|
|
|
|
<%= translate(locale, "Log in") %>
|
|
|
|
</a>
|
|
|
|
</div>
|
2019-04-16 04:23:40 +00:00
|
|
|
<% end %>
|
2019-05-02 01:03:39 +00:00
|
|
|
<% end %>
|
2019-04-16 04:23:40 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2019-05-02 01:03:39 +00:00
|
|
|
|
2019-05-01 02:17:34 +00:00
|
|
|
<% if CONFIG.banner %>
|
2019-05-02 01:03:39 +00:00
|
|
|
<div class="h-box">
|
|
|
|
<h3><%= CONFIG.banner %></h3>
|
|
|
|
</div>
|
2019-05-01 02:18:35 +00:00
|
|
|
<% end %>
|
2019-05-02 01:03:39 +00:00
|
|
|
|
2019-04-16 04:23:40 +00:00
|
|
|
<%= content %>
|
2019-05-02 01:03:39 +00:00
|
|
|
|
2021-04-06 10:45:54 +00:00
|
|
|
<footer>
|
2019-04-16 04:23:40 +00:00
|
|
|
<div class="pure-g">
|
|
|
|
<div class="pure-u-1 pure-u-md-1-3">
|
2020-08-25 16:07:16 +00:00
|
|
|
<a href="https://github.com/iv-org/invidious">
|
2019-04-16 04:23:40 +00:00
|
|
|
<%= translate(locale, "Released under the AGPLv3 by Omar Roth.") %>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div class="pure-u-1 pure-u-md-1-3">
|
2020-12-09 19:21:42 +00:00
|
|
|
<i class="icon ion-ios-wallet"></i>
|
2020-12-09 18:43:45 +00:00
|
|
|
BTC: <a href="bitcoin:bc1qfhe7rq3lqzuayzjxzyt9waz9ytrs09kla3tsgr">bc1qfhe7rq3lqzuayzjxzyt9waz9ytrs09kla3tsgr</a>
|
2019-05-02 01:03:39 +00:00
|
|
|
</div>
|
2019-04-16 04:23:40 +00:00
|
|
|
<div class="pure-u-1 pure-u-md-1-3">
|
2020-12-09 19:21:42 +00:00
|
|
|
<i class="icon ion-ios-wallet"></i>
|
2020-12-09 18:43:45 +00:00
|
|
|
XMR: <a href="monero:41nMCtek197boJtiUvGnTFYMatrLEpnpkQDmUECqx5Es2uX3sTKKWVhSL76suXsG3LXqkEJBrCZBgPTwJrDp1FrZJfycGPR">Click here</a>
|
2019-05-02 01:03:39 +00:00
|
|
|
</div>
|
2019-04-16 04:23:40 +00:00
|
|
|
<div class="pure-u-1 pure-u-md-1-3">
|
2020-12-09 18:43:45 +00:00
|
|
|
<a href="https://github.com/iv-org/documentation">Documentation</a>
|
2019-04-16 04:23:40 +00:00
|
|
|
</div>
|
|
|
|
<div class="pure-u-1 pure-u-md-1-3">
|
|
|
|
<i class="icon ion-logo-javascript"></i>
|
|
|
|
<a rel="jslicense" href="/licenses">
|
|
|
|
<%= translate(locale, "View JavaScript license information.") %>
|
|
|
|
</a>
|
|
|
|
/
|
|
|
|
<i class="icon ion-ios-paper"></i>
|
|
|
|
<a href="/privacy">
|
|
|
|
<%= translate(locale, "View privacy policy.") %>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div class="pure-u-1 pure-u-md-1-3">
|
|
|
|
<i class="icon ion-logo-github"></i>
|
2020-02-20 23:50:54 +00:00
|
|
|
<%= translate(locale, "Current version: ") %> <%= CURRENT_VERSION %>-<%= CURRENT_COMMIT %> @ <%= CURRENT_BRANCH %>
|
2019-05-02 01:03:39 +00:00
|
|
|
</div>
|
2019-04-16 04:23:40 +00:00
|
|
|
</div>
|
2021-04-06 10:45:54 +00:00
|
|
|
</footer>
|
2017-12-30 21:22:55 +00:00
|
|
|
</div>
|
2019-04-16 04:23:40 +00:00
|
|
|
<div class="pure-u-1 pure-u-md-2-24"></div>
|
2017-11-23 07:48:55 +00:00
|
|
|
</div>
|
2020-03-15 21:46:08 +00:00
|
|
|
<script src="/js/handlers.js?v=<%= ASSET_COMMIT %>"></script>
|
2019-05-09 16:52:37 +00:00
|
|
|
<script src="/js/themes.js?v=<%= ASSET_COMMIT %>"></script>
|
2019-05-05 12:46:01 +00:00
|
|
|
<% if env.get? "user" %>
|
|
|
|
<script src="/js/sse.js?v=<%= ASSET_COMMIT %>"></script>
|
2020-03-15 21:46:08 +00:00
|
|
|
<script id="notification_data" type="application/json">
|
2020-03-29 21:44:45 +00:00
|
|
|
<%=
|
|
|
|
{
|
|
|
|
"upload_text" => HTML.escape(translate(locale, "`x` uploaded a video")),
|
|
|
|
"live_upload_text" => HTML.escape(translate(locale, "`x` is live"))
|
|
|
|
}.to_pretty_json
|
|
|
|
%>
|
2019-05-05 12:46:01 +00:00
|
|
|
</script>
|
|
|
|
<script src="/js/notifications.js?v=<%= ASSET_COMMIT %>"></script>
|
|
|
|
<% end %>
|
2017-11-23 07:48:55 +00:00
|
|
|
</body>
|
|
|
|
|
2018-02-06 01:11:57 +00:00
|
|
|
</html>
|