From 5859cd290c9e36ee390756848ec8cb2df1d0397c Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Fri, 1 Mar 2019 16:47:06 -0600 Subject: [PATCH] Clean up footer and add version --- src/invidious.cr | 8 +++++ src/invidious/views/subscriptions.ecr | 2 +- src/invidious/views/template.ecr | 50 ++++++++++++--------------- 3 files changed, 32 insertions(+), 28 deletions(-) diff --git a/src/invidious.cr b/src/invidious.cr index 36450676..b6356a51 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -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 diff --git a/src/invidious/views/subscriptions.ecr b/src/invidious/views/subscriptions.ecr index 109da18f..f1b72aaa 100644 --- a/src/invidious/views/subscriptions.ecr +++ b/src/invidious/views/subscriptions.ecr @@ -72,7 +72,7 @@ function mark_watched(target) { } -
+ <%= content %> +
+
+