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