integrated section and card previews into page show

This commit is contained in:
2022-11-25 22:00:33 +02:00
parent 33bbae0ae5
commit 738bfe01a5
14 changed files with 19 additions and 13 deletions

View 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

View File

View File

@ -1,2 +1,3 @@
.p-6
%h3.mt-4.text-lg.font-bold= key.upcase
= image_tag "cms/" + value

View File

@ -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")