From e00a5ec101a53fe0f0b9ef46c16448ebb7d4a3d0 Mon Sep 17 00:00:00 2001 From: Mischa The Evil Date: Thu, 5 Aug 2021 01:28:30 +0200 Subject: [PATCH] Add current theme and whether it includes JavaScript to Redmine::Info. --- lib/redmine/info.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib/redmine/info.rb b/lib/redmine/info.rb index 5aaab3e72..04db31d9e 100644 --- a/lib/redmine/info.rb +++ b/lib/redmine/info.rb @@ -20,6 +20,18 @@ module Redmine ["Mailer delivery", ActionMailer::Base.delivery_method] ].map {|info| " %-30s %s" % info}.join("\n") + "\n" + theme = Setting.ui_theme.blank? ? 'Default' : Setting.ui_theme.capitalize + theme_js = (Redmine::Themes.theme(Setting.ui_theme).javascripts.include?('theme') ? + ' (includes JavaScript)' : + '' + ) unless Setting.ui_theme.blank? + theme_string = "#{theme + theme_js.to_s}" + + s << "Redmine settings:\n" + s << [ + ["Redmine theme", theme_string] + ].map {|settings| " %-30s %s" % settings}.join("\n") + "\n" + s << "SCM:\n" Redmine::Scm::Base.all.each do |scm| scm_class = "Repository::#{scm}".constantize -- 2.26.0.windows.1