invidious/src/invidious/views/template.ecr

102 行
3.9 KiB
Plaintext
Raw 通常表示 履歴

2017-11-23 16:48:55 +09:00
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
2018-09-04 23:01:43 +09:00
<meta name="referrer" content="no-referrer">
2018-08-04 08:17:19 +09:00
<%= yield_content "header" %>
2018-11-09 06:58:10 +09:00
<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-09-06 23:59:17 +09:00
<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 11:32:14 +09:00
<link rel="stylesheet" href="/css/default.css">
2018-07-17 01:24:24 +09:00
<% if env.get?("user") && env.get("user").as(User).preferences.dark_mode %>
2018-04-14 11:32:14 +09:00
<link rel="stylesheet" href="/css/darktheme.css">
<% else %>
<link rel="stylesheet" href="/css/lighttheme.css">
<% end %>
2017-11-23 16:48:55 +09:00
</head>
<body>
<div class="pure-g">
2018-09-10 04:50:24 +09:00
<div class="pure-u-1 pure-u-md-2-24"></div>
<div class="pure-u-1 pure-u-md-20-24">
2018-08-05 13:07:38 +09:00
<div class="pure-g navbar h-box">
2018-07-17 01:24:24 +09: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">
2018-04-14 11:32:14 +09:00
<fieldset>
2018-09-28 07:02:59 +09:00
<input type="search" style="width:100%;" name="q" placeholder="search" value="<%= env.params.query["q"]?.try {|x| HTML.escape(x)} || env.get?("search").try {|x| HTML.escape(x.as(String)) } %>">
2018-04-14 11:32:14 +09:00
</fieldset>
</form>
</div>
<div class="pure-u-1 pure-u-md-8-24 user-field">
2018-07-17 01:24:24 +09:00
<% if env.get? "user" %>
<div class="pure-u-1-4">
2018-08-30 22:14:59 +09:00
<a href="/toggle_theme?referer=<%= env.get?("current_page") %>" class="pure-menu-heading">
<% 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">
<a href="/feed/subscriptions" class="pure-menu-heading">
<% notification_count = env.get("user").as(User).notifications.size %>
<% if notification_count > 0 %>
<%= notification_count %> <i class="icon ion-ios-notifications"></i>
<% else %>
<i class="icon ion-ios-notifications-outline"></i>
<% end %>
</a>
</div>
<div class="pure-u-1-4">
2018-08-30 22:14:59 +09:00
<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-4">
2018-08-30 22:14:59 +09:00
<a href="/signout?referer=<%= env.get?("current_page") %>" class="pure-menu-heading">Sign out</a>
</div>
2018-03-23 02:44:36 +09:00
<% else %>
2018-08-30 22:14:59 +09:00
<a href="/login?referer=<%= env.get?("current_page") %>" class="pure-menu-heading">Login</a>
2018-03-23 02:44:36 +09:00
<% end %>
2018-03-17 01:40:29 +09:00
</div>
</div>
2017-11-23 16:48:55 +09:00
<%= content %>
<div class="footer">
Released under AGPLv3 by <a href="https://github.com/omarroth">Omar
Roth</a>.
Source available <a
href="https://github.com/omarroth/invidious">here</a>.
2018-08-26 05:43:39 +09:00
<p>Liberapay:
<a href="https://liberapay.com/omarroth">
https://liberapay.com/omarroth
</a>
</p>
2018-08-16 10:36:21 +09:00
<p>Patreon:
<a href="https://patreon.com/omarroth">
https://patreon.com/omarroth
</a>
</p>
<p>BTC: 356DpZyMXu6rYd55Yqzjs29n79kGKWcYrY</p>
<p>BCH: qq4ptclkzej5eza6a50et5ggc58hxsq5aylqut2npk</p>
</div>
2017-11-23 16:48:55 +09:00
</div>
2018-09-10 04:50:24 +09:00
<div class="pure-u-1 pure-u-md-2-24"></div>
2018-11-05 22:31:18 +09:00
</div>
2017-11-23 16:48:55 +09:00
</body>
2018-02-06 10:11:57 +09:00
</html>