From 732bd28c92a6344d3d7cfb49b65fcd775d9cf4eb Mon Sep 17 00:00:00 2001 From: Tommy Miland Date: Mon, 4 Mar 2019 04:04:26 +0100 Subject: [PATCH 1/2] Update invidious.cr Add current branch. --- src/invidious.cr | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/invidious.cr b/src/invidious.cr index 45abecc9f..0951fd72c 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" => { From a1af75a87fd184bf90dbebea2f605dd6699b284f Mon Sep 17 00:00:00 2001 From: Tommy Miland Date: Mon, 4 Mar 2019 04:05:09 +0100 Subject: [PATCH 2/2] Update template.ecr Add current branch to footer. Add icons to footer. --- src/invidious/views/template.ecr | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/src/invidious/views/template.ecr b/src/invidious/views/template.ecr index a271b6ea1..0f7058363 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.") %> -
<%= translate(locale, "BTC: ") %>356DpZyMXu6rYd55Yqzjs29n79kGKWcYrY
-
<%= translate(locale, "BCH: ") %>qq4ptclkzej5eza6a50et5ggc58hxsq5aylqut2npk
+ + <%= translate(locale, "BTC: ") %>356DpZyMXu6rYd55Yqzjs29n79kGKWcYrY
+
+ + <%= translate(locale, "BCH: ") %>qq4ptclkzej5eza6a50et5ggc58hxsq5aylqut2npk
+ -
<%= translate(locale, "Current version: ") %> <%= CURRENT_VERSION %>-<%= CURRENT_COMMIT %>
+
+ + <%= translate(locale, "Current version: ") %> <%= CURRENT_VERSION %>-<%= CURRENT_COMMIT %> + + <%= CURRENT_BRANCH %>