summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorOmar Roth <omarroth@protonmail.com>2019-03-03 21:41:03 -0600
committerGitHub <noreply@github.com>2019-03-03 21:41:03 -0600
commit58956042822b2fe27b6900d210ab0c8c8950b5e5 (patch)
tree4e0d571689e6430cd42cde397b3517fe7044e8a6 /src
parent90715467a245d08441b8454d0f4dfa5295038306 (diff)
parenta1af75a87fd184bf90dbebea2f605dd6699b284f (diff)
downloadinvidious-58956042822b2fe27b6900d210ab0c8c8950b5e5.tar.gz
invidious-58956042822b2fe27b6900d210ab0c8c8950b5e5.tar.bz2
invidious-58956042822b2fe27b6900d210ab0c8c8950b5e5.zip
Merge pull request #394 from tmiland/contrib
Add current branch to footer
Diffstat (limited to 'src')
-rw-r--r--src/invidious.cr2
-rw-r--r--src/invidious/views/template.ecr16
2 files changed, 15 insertions, 3 deletions
diff --git a/src/invidious.cr b/src/invidious.cr
index 45abecc9..0951fd72 100644
--- a/src/invidious.cr
+++ b/src/invidious.cr
@@ -92,6 +92,7 @@ PUBSUB_URL = URI.parse("https://pubsubhubbub.appspot.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
+CURRENT_BRANCH = `git status | head -1`.strip
LOCALES = {
"ar" => load_locale("ar"),
@@ -135,6 +136,7 @@ if config.statistics_enabled
"software" => {
"name" => "invidious",
"version" => "#{CURRENT_VERSION}-#{CURRENT_COMMIT}",
+ "branch" => "#{CURRENT_BRANCH}",
},
"openRegistrations" => config.registration_enabled,
"usage" => {
diff --git a/src/invidious/views/template.ecr b/src/invidious/views/template.ecr
index a271b6ea..0f705836 100644
--- a/src/invidious/views/template.ecr
+++ b/src/invidious/views/template.ecr
@@ -107,19 +107,29 @@
<%= 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">
+ <i class="icon ion-logo-bitcoin"></i>
+ <%= translate(locale, "BTC: ") %>356DpZyMXu6rYd55Yqzjs29n79kGKWcYrY</div>
+ <div class="pure-u-1 pure-u-md-1-3">
+ <i class="icon ion-logo-bitcoin"></i>
+ <%= translate(locale, "BCH: ") %>qq4ptclkzej5eza6a50et5ggc58hxsq5aylqut2npk</div>
+ <div class="pure-u-1 pure-u-md-1-3">
+ <i class="icon ion-logo-usd"></i>
<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">
+ <i class="icon ion-logo-javascript"></i>
<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 class="pure-u-1 pure-u-md-1-3">
+ <i class="icon ion-logo-github"></i>
+ <%= translate(locale, "Current version: ") %> <%= CURRENT_VERSION %>-<%= CURRENT_COMMIT %>
+ <i class="icon ion-logo-github"></i>
+ <%= CURRENT_BRANCH %></div>
</div>
</div>
</div>