11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
# File 'app/components/spark/page/layout_component.rb', line 11
def render
@view.capture do
if title || nav ||
concat content_tag(:div, class: join_class("header")) {
concat if_content_tag(:div, nav, join_class: "header-nav")
concat(component("layout/header", title: title) { |h|
actions.each { |a| h.action { a.yield }}
})
concat if_content_tag(:div, , join_class: "header-body")
}
end
concat if_content_tag(:div, main, join_class: "main-wrapper")
concat if_content_tag(:div, body, join_class: "body")
concat if_content_tag(:div, , join_class: "footer")
concat content_for(:modal)
end
end
|