1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-29 18:52:22 +01:00

[bug] background image of the profile is not shown and wrong menu hover color

This commit is contained in:
Sylvain 2020-05-04 12:08:43 +02:00
parent 7640704568
commit 29e7ac2f08
5 changed files with 8 additions and 5 deletions

View File

@ -13,6 +13,7 @@
- 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: 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

View File

@ -6,7 +6,7 @@
class Stylesheet < ApplicationRecord
validates_presence_of :contents
## ===== THEME =====
## ===== COMMON =====
def rebuild!
if Stylesheet.primary && Stylesheet.secondary && name == 'theme'
@ -16,7 +16,9 @@ class Stylesheet < ApplicationRecord
end
end
def self.build_sheet!
## ===== THEME =====
def self.build_theme!
return unless Stylesheet.primary && Stylesheet.secondary
if Stylesheet.theme

View File

@ -1 +1 @@
<%= @stylesheet.contents %>
<%= @stylesheet.contents.html_safe %>

View File

@ -699,7 +699,7 @@ unless Setting.find_by(name: 'secondary_color').try(:value)
setting.save
end
Stylesheet.build_sheet!
Stylesheet.build_theme!
Stylesheet.build_home!
unless Setting.find_by(name: 'training_information_message').try(:value)

View File

@ -66,7 +66,7 @@ namespace :fablab do
desc '(re)build customization stylesheet'
task rebuild_stylesheet: :environment do
Stylesheet.build_sheet!
Stylesheet.build_theme!
end
desc 'migration notifications from Fab-manager v1'