Commit fcd27b76 authored by Marvin Frick's avatar Marvin Frick

changes display for empty brand_logo

parent 09ffd672
......@@ -8,13 +8,15 @@ module AppearancesHelper
end
def brand_image
logo = if brand_item
brand_item.logo
if brand_item
if brand_item.logo?
image_tag brand_item.logo
else
'brand_logo.png'
nil
end
else
image_tag 'brand_logo.png'
end
image_tag logo
end
def brand_text
......
......@@ -17,7 +17,7 @@
.form-group
= f.label :logo, class: 'control-label'
.col-sm-10
- if @appearance.logo
- if @appearance.logo?
= image_tag @appearance.logo, class: 'appearance-logo-preview'
= f.file_field :logo, class: ""
.hint
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment