mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-04-11.git
synced 2024-08-15 00:43:26 +00:00
Clean up footer and add version
This commit is contained in:
parent
a39b1583da
commit
5859cd290c
3 changed files with 32 additions and 28 deletions
|
@ -90,6 +90,8 @@ YT_URL = URI.parse("https://www.youtube.com")
|
||||||
REDDIT_URL = URI.parse("https://www.reddit.com")
|
REDDIT_URL = URI.parse("https://www.reddit.com")
|
||||||
LOGIN_URL = URI.parse("https://accounts.google.com")
|
LOGIN_URL = URI.parse("https://accounts.google.com")
|
||||||
TEXTCAPTCHA_URL = URI.parse("http://textcaptcha.com/omarroth@hotmail.com.json")
|
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 = {
|
LOCALES = {
|
||||||
"ar" => load_locale("ar"),
|
"ar" => load_locale("ar"),
|
||||||
|
@ -119,6 +121,12 @@ config.video_threads.times do |i|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# stats = Statistics.new
|
||||||
|
# if config.statistics
|
||||||
|
# spawn do
|
||||||
|
# end
|
||||||
|
# end
|
||||||
|
|
||||||
top_videos = [] of Video
|
top_videos = [] of Video
|
||||||
if config.top_enabled
|
if config.top_enabled
|
||||||
spawn do
|
spawn do
|
||||||
|
|
|
@ -72,7 +72,7 @@ function mark_watched(target) {
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="pure-g">
|
<div class="pure-g h-box">
|
||||||
<div class="pure-u-1 pure-u-md-1-5">
|
<div class="pure-u-1 pure-u-md-1-5">
|
||||||
<% if page >= 2 %>
|
<% if page >= 2 %>
|
||||||
<a href="/feed/subscriptions?max_results=<%= max_results %>&page=<%= page - 1 %>">
|
<a href="/feed/subscriptions?max_results=<%= max_results %>&page=<%= page - 1 %>">
|
||||||
|
|
|
@ -100,34 +100,30 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<%= content %>
|
<%= content %>
|
||||||
|
<div class="h-box">
|
||||||
|
<hr>
|
||||||
|
</div>
|
||||||
<div class="footer">
|
<div class="footer">
|
||||||
<p>
|
<div class="pure-g">
|
||||||
<a href="https://github.com/omarroth">
|
<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.") %>
|
<%= translate(locale, "Released under the AGPLv3 by Omar Roth.") %>
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</div>
|
||||||
<p>
|
<div class="pure-u-1 pure-u-md-1-3"><%= translate(locale, "BTC: ") %>356DpZyMXu6rYd55Yqzjs29n79kGKWcYrY</div>
|
||||||
<a href="https://github.com/omarroth/invidious">
|
<div class="pure-u-1 pure-u-md-1-3"><%= translate(locale, "BCH: ") %>qq4ptclkzej5eza6a50et5ggc58hxsq5aylqut2npk</div>
|
||||||
<%= translate(locale, "Source available here.") %>
|
<div class="pure-u-1 pure-u-md-1-3">
|
||||||
</a>
|
<a href="https://liberapay.com/omarroth"><%= translate(locale, "Liberapay") %></a>
|
||||||
</p>
|
/
|
||||||
<p><%= translate(locale, "Liberapay: ") %>
|
<a href="https://patreon.com/omarroth"><%= translate(locale, "Patreon") %></a>
|
||||||
<a href="https://liberapay.com/omarroth">
|
</div>
|
||||||
https://liberapay.com/omarroth
|
<div class="pure-u-1 pure-u-md-1-3">
|
||||||
</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">
|
<a rel="jslicense" href="/licenses">
|
||||||
<%= translate(locale, "View JavaScript license information.") %>
|
<%= translate(locale, "View JavaScript license information.") %>
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</div>
|
||||||
|
<div class="pure-u-1 pure-u-md-1-3"><%= translate(locale, "Current version: ") %> <%= CURRENT_VERSION %>-<%= CURRENT_COMMIT %></div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="pure-u-1 pure-u-md-2-24"></div>
|
<div class="pure-u-1 pure-u-md-2-24"></div>
|
||||||
|
|
Loading…
Reference in a new issue