mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-04-10 00:53:51 +02:00
[bug] background image of the profile is not shown and wrong menu hover color
This commit is contained in:
parent
7640704568
commit
29e7ac2f08
@ -13,6 +13,7 @@
|
|||||||
- Fix a bug: plan edition does not show the associated group
|
- Fix a bug: plan edition does not show the associated group
|
||||||
- Fix a bug: subscription page shows the groups without any active plans
|
- Fix a bug: subscription page shows the groups without any active plans
|
||||||
- Fix a bug: cart price inconsistently updated after a subscription
|
- Fix a bug: cart price inconsistently updated after a subscription
|
||||||
|
- Fix a bug: background image of the profile is not shown and wrong menu hover color
|
||||||
|
|
||||||
## v4.3.4 2020 April 14
|
## v4.3.4 2020 April 14
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
class Stylesheet < ApplicationRecord
|
class Stylesheet < ApplicationRecord
|
||||||
validates_presence_of :contents
|
validates_presence_of :contents
|
||||||
|
|
||||||
## ===== THEME =====
|
## ===== COMMON =====
|
||||||
|
|
||||||
def rebuild!
|
def rebuild!
|
||||||
if Stylesheet.primary && Stylesheet.secondary && name == 'theme'
|
if Stylesheet.primary && Stylesheet.secondary && name == 'theme'
|
||||||
@ -16,7 +16,9 @@ class Stylesheet < ApplicationRecord
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.build_sheet!
|
## ===== THEME =====
|
||||||
|
|
||||||
|
def self.build_theme!
|
||||||
return unless Stylesheet.primary && Stylesheet.secondary
|
return unless Stylesheet.primary && Stylesheet.secondary
|
||||||
|
|
||||||
if Stylesheet.theme
|
if Stylesheet.theme
|
||||||
|
@ -1 +1 @@
|
|||||||
<%= @stylesheet.contents %>
|
<%= @stylesheet.contents.html_safe %>
|
@ -699,7 +699,7 @@ unless Setting.find_by(name: 'secondary_color').try(:value)
|
|||||||
setting.save
|
setting.save
|
||||||
end
|
end
|
||||||
|
|
||||||
Stylesheet.build_sheet!
|
Stylesheet.build_theme!
|
||||||
Stylesheet.build_home!
|
Stylesheet.build_home!
|
||||||
|
|
||||||
unless Setting.find_by(name: 'training_information_message').try(:value)
|
unless Setting.find_by(name: 'training_information_message').try(:value)
|
||||||
|
@ -66,7 +66,7 @@ namespace :fablab do
|
|||||||
|
|
||||||
desc '(re)build customization stylesheet'
|
desc '(re)build customization stylesheet'
|
||||||
task rebuild_stylesheet: :environment do
|
task rebuild_stylesheet: :environment do
|
||||||
Stylesheet.build_sheet!
|
Stylesheet.build_theme!
|
||||||
end
|
end
|
||||||
|
|
||||||
desc 'migration notifications from Fab-manager v1'
|
desc 'migration notifications from Fab-manager v1'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user