19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# File 'lib/matestack/ui/bootstrap/components/card.rb', line 19
def response
div card_attributes do
if context. || slots && slots[:header]
end
img_partial :top unless context.img_pos == :bottom
div class: context.content_wrapper_class do
body_partial if context.title || context.body || slots && slots[:body]
div class: "p-3 pt-1" do yield if block_given? end
img_partial :bottom if context.img_pos == :bottom
if context. || slots && slots[:footer]
end
end
end
|