half section, split out button
This commit is contained in:
@ -9,4 +9,10 @@ module CmsHelper
|
||||
img = image_url "cms/house.jpg"
|
||||
"background-image: url('#{img}');"
|
||||
end
|
||||
def image_for(section , classes)
|
||||
image_tag("cms/#{section['image']}" , class: classes)
|
||||
end
|
||||
def has_button(section)
|
||||
section['button']
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user