add image details on card index
This commit is contained in:
parent
43b7f1e1c9
commit
322a9b64a9
@ -32,11 +32,17 @@
|
|||||||
= card.updated_by
|
= card.updated_by
|
||||||
|
|
||||||
.basis-96
|
.basis-96
|
||||||
%h3.mt-4.text-lg.font-bold Image
|
= link_to(merged.images_path(card_id: card.id)) do
|
||||||
-if( card.image.blank? )
|
-if card.image
|
||||||
%p No image
|
%h3.mt-4.text-lg.font-bold Image #{card.image.name}
|
||||||
-else
|
.flex.align-center.justify-between.mb-4
|
||||||
= image_for( card, "p-3")
|
.text-lg.font-bold.mt-2.mx-2
|
||||||
|
= card.image.size.to_s + "k"
|
||||||
|
%strong.inline-block.rounded.bg-yellow-200.px-3.py-1.text-md.font-medium
|
||||||
|
= card.image.aspect_ratio
|
||||||
|
= image_for( card )
|
||||||
|
-else
|
||||||
|
%h3.mt-4.text-lg.font-bold No Image
|
||||||
.basis-72.grow
|
.basis-72.grow
|
||||||
%h3.mt-4.text-lg.font-bold Fields
|
%h3.mt-4.text-lg.font-bold Fields
|
||||||
= form_tag( merged.card_path(card.id) , {method: :patch , class: "mx-auto mt-8 mb-0 max-w space-y-4" } ) do
|
= form_tag( merged.card_path(card.id) , {method: :patch , class: "mx-auto mt-8 mb-0 max-w space-y-4" } ) do
|
||||||
|
Loading…
Reference in New Issue
Block a user