Clean up footer and add version

このコミットが含まれているのは:
Omar Roth 2019-03-01 16:47:06 -06:00
コミット 5859cd290c
3個のファイルの変更32行の追加28行の削除

ファイルの表示

@ -90,6 +90,8 @@ YT_URL = URI.parse("https://www.youtube.com")
REDDIT_URL = URI.parse("https://www.reddit.com")
LOGIN_URL = URI.parse("https://accounts.google.com")
TEXTCAPTCHA_URL = URI.parse("http://textcaptcha.com/omarroth@hotmail.com.json")
CURRENT_COMMIT = `git rev-list HEAD --max-count=1 --abbrev-commit`.strip
CURRENT_VERSION = `git describe --tags $(git rev-list --tags --max-count=1)`.strip
LOCALES = {
"ar" => load_locale("ar"),
@ -119,6 +121,12 @@ config.video_threads.times do |i|
end
end
# stats = Statistics.new
# if config.statistics
# spawn do
# end
# end
top_videos = [] of Video
if config.top_enabled
spawn do

ファイルの表示

@ -72,7 +72,7 @@ function mark_watched(target) {
}
</script>
<div class="pure-g">
<div class="pure-g h-box">
<div class="pure-u-1 pure-u-md-1-5">
<% if page >= 2 %>
<a href="/feed/subscriptions?max_results=<%= max_results %>&page=<%= page - 1 %>">

ファイルの表示

@ -100,34 +100,30 @@
</div>
</div>
<%= content %>
<div class="h-box">
<hr>
</div>
<div class="footer">
<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: ") %>
<a href="https://liberapay.com/omarroth">
https://liberapay.com/omarroth
</a>
</p>
<p><%= translate(locale, "Patreon: ") %>
<a href="https://patreon.com/omarroth">
https://patreon.com/omarroth
</a>
</p>
<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>
<div class="pure-g">
<div class="pure-u-1 pure-u-md-1-3">
<a href="https://github.com/omarroth/invidious">
<%= translate(locale, "Released under the AGPLv3 by Omar Roth.") %>
</a>
</div>
<div class="pure-u-1 pure-u-md-1-3"><%= translate(locale, "BTC: ") %>356DpZyMXu6rYd55Yqzjs29n79kGKWcYrY</div>
<div class="pure-u-1 pure-u-md-1-3"><%= translate(locale, "BCH: ") %>qq4ptclkzej5eza6a50et5ggc58hxsq5aylqut2npk</div>
<div class="pure-u-1 pure-u-md-1-3">
<a href="https://liberapay.com/omarroth"><%= translate(locale, "Liberapay") %></a>
/
<a href="https://patreon.com/omarroth"><%= translate(locale, "Patreon") %></a>
</div>
<div class="pure-u-1 pure-u-md-1-3">
<a rel="jslicense" href="/licenses">
<%= translate(locale, "View JavaScript license information.") %>
</a>
</div>
<div class="pure-u-1 pure-u-md-1-3"><%= translate(locale, "Current version: ") %> <%= CURRENT_VERSION %>-<%= CURRENT_COMMIT %></div>
</div>
</div>
</div>
<div class="pure-u-1 pure-u-md-2-24"></div>