FIX Logo web path.
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
--- a/plugins/000_redmine_x_ux_upgrade/lib/redmine_x_ux_upgrade.rb
|
--- a/plugins/000_redmine_x_ux_upgrade/lib/redmine_x_ux_upgrade.rb
|
||||||
+++ b/plugins/000_redmine_x_ux_upgrade/lib/redmine_x_ux_upgrade.rb
|
+++ b/plugins/000_redmine_x_ux_upgrade/lib/redmine_x_ux_upgrade.rb
|
||||||
@@ -41,7 +41,7 @@ module RedmineXUxUpgrade
|
@@ -41,10 +41,10 @@ module RedmineXUxUpgrade
|
||||||
|
|
||||||
logo = settings.attachments.where(description: 'logo')&.last
|
logo = settings.attachments.where(description: 'logo')&.last
|
||||||
redmine_x_ux_theme_path = File.join(Rails.root, 'public', 'themes', 'redminex_theme', 'images')
|
redmine_x_ux_theme_path = File.join(Rails.root, 'public', 'themes', 'redminex_theme', 'images')
|
||||||
@@ -8,7 +8,11 @@
|
|||||||
+ path_to_logo = "#{redmine_x_ux_theme_path}/logo.png" if logo
|
+ path_to_logo = "#{redmine_x_ux_theme_path}/logo.png" if logo
|
||||||
|
|
||||||
if path_to_logo && File.exist?(path_to_logo)
|
if path_to_logo && File.exist?(path_to_logo)
|
||||||
return ActionController::Base.helpers.asset_path("#{Redmine::Utils::relative_url_root}/themes/redminex_theme/images/#{logo.disk_filename}", :plugin => '000_redmine_x_ux_upgrade')
|
- return ActionController::Base.helpers.asset_path("#{Redmine::Utils::relative_url_root}/themes/redminex_theme/images/#{logo.disk_filename}", :plugin => '000_redmine_x_ux_upgrade')
|
||||||
|
+ return ActionController::Base.helpers.asset_path("#{Redmine::Utils::relative_url_root}/themes/redminex_theme/images/logo.png", :plugin => '000_redmine_x_ux_upgrade')
|
||||||
|
end
|
||||||
|
|
||||||
|
#default logo if not set
|
||||||
--- a/plugins/000_redmine_x_ux_upgrade/lib/redmine_x_ux_upgrade/ux_upgrade_attachments.rb
|
--- a/plugins/000_redmine_x_ux_upgrade/lib/redmine_x_ux_upgrade/ux_upgrade_attachments.rb
|
||||||
+++ b/plugins/000_redmine_x_ux_upgrade/lib/redmine_x_ux_upgrade/ux_upgrade_attachments.rb
|
+++ b/plugins/000_redmine_x_ux_upgrade/lib/redmine_x_ux_upgrade/ux_upgrade_attachments.rb
|
||||||
@@ -13,6 +13,7 @@ module RedmineXUxUpgrade
|
@@ -13,6 +13,7 @@ module RedmineXUxUpgrade
|
||||||
|
|||||||
Reference in New Issue
Block a user