27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# File 'lib/aureus/components/box.rb', line 27
def render
title = content_tag('h3',compact(content_tag('span', @title),compact_render(*@buttons)))
classes = ['box']
classes << 'centered' if @options[:centered]
@content = @new_content if !@new_content.nil?
content_tag 'div', class: classes.join(' ') do
case @options[:for]
when :form
@content = content_tag('ul', @content, class: 'content')
end
= @foot.nil? ? '' : content_tag('div', @foot, class: 'foot')
compact title, content_tag('div', @content),
end
end
|