Project

General

Profile

Feature #35686 » 0001-Add-current-theme-and-whether-it-includes-JavaScript.patch

Patch against trunk @ r21131 - Mischa The Evil, 2021-08-05 01:45

View differences:

lib/redmine/info.rb
20 20
          ["Mailer delivery", ActionMailer::Base.delivery_method]
21 21
        ].map {|info| "  %-30s %s" % info}.join("\n") + "\n"
22 22

  
23
        theme = Setting.ui_theme.blank? ? 'Default' : Setting.ui_theme.capitalize
24
        theme_js  = (Redmine::Themes.theme(Setting.ui_theme).javascripts.include?('theme') ?
25
                      ' (includes JavaScript)' :
26
                      ''
27
                    ) unless Setting.ui_theme.blank?
28
        theme_string = "#{theme + theme_js.to_s}"
29

  
30
        s << "Redmine settings:\n"
31
        s << [
32
          ["Redmine theme", theme_string]
33
        ].map {|settings| "  %-30s %s" % settings}.join("\n") + "\n"
34

  
23 35
        s << "SCM:\n"
24 36
        Redmine::Scm::Base.all.each do |scm|
25 37
          scm_class = "Repository::#{scm}".constantize
(1-1/2)