integrated section and card previews into page show
This commit is contained in:
5
app/views/cms/sections/_card_template.haml
Normal file
5
app/views/cms/sections/_card_template.haml
Normal file
@ -0,0 +1,5 @@
|
||||
.p-6
|
||||
%h3.mt-4.text-lg.font-bold= key.upcase
|
||||
%p= value
|
||||
=image_tag("cms/card_preview/#{value}" , class: "w-full object-contain")
|
||||
%p #{section.content['cards'].length} cards
|
0
app/views/cms/sections/_cards.haml
Normal file
0
app/views/cms/sections/_cards.haml
Normal file
@ -1,2 +1,3 @@
|
||||
.p-6
|
||||
%h3.mt-4.text-lg.font-bold= key.upcase
|
||||
= image_tag "cms/" + value
|
||||
|
@ -1,3 +1,4 @@
|
||||
.p-6{style: bg(section)}
|
||||
.p-6
|
||||
%h3.mt-4.text-lg.font-bold= key.upcase
|
||||
%p= value
|
||||
=image_tag("cms/section_preview/#{section.template}" , class: "w-full object-contain")
|
||||
|
Reference in New Issue
Block a user