removed old set image stuff

This commit is contained in:
Torsten 2022-12-30 21:12:04 +02:00
parent 1976f40638
commit 32b8736245
3 changed files with 8 additions and 37 deletions

View File

@ -1,17 +0,0 @@
= render "layouts/merged_header"
.grid.grid-cols-6.gap-2.m-8
- content_for :hidden do
= hidden_field_tag :redirect , merged.card_set_image_path(@card.id,image: "NEW")
= form_tag(merged.images_path, multipart: true) do
= render "merged/images/new_image"
-@images.each do |image|
.flex.flex-col.justify-start.border.rounded.border-gray-100.drop-shadow-lg
.flex.justify-between
.text-xl.m-2= image.name
%strong.inline-block.rounded.bg-yellow-50.px-2.py-3.text-md.font-medium
= aspect_ratio(image)
.p-2.object-contain
= link_to( merged.card_set_image_path( image: image.name)) do
=image_tag( image.asset_name )

View File

@ -56,12 +56,17 @@
=link_to merged.section_cards_path(section.id) do =link_to merged.section_cards_path(section.id) do
=card_preview(section , class: "object-contain") =card_preview(section , class: "object-contain")
- else - else
= link_to(merged.section_select_image_path(section.id)) do = link_to(merged.images_path(section_id: section.id)) do
%h3.mt-4.text-lg.font-bold Image
-if section.image -if section.image
%h3.mt-4.text-lg.font-bold Image #{section.image.name}
.flex.align-center.justify-between.mb-4
.text-lg.font-bold.mt-2.mx-2
= section.image.size.to_s + "k"
%strong.inline-block.rounded.bg-yellow-200.px-3.py-1.text-md.font-medium
= section.image.aspect_ratio
= image_for( section , "h-40") = image_for( section , "h-40")
-else -else
%p No image %h3.mt-4.text-lg.font-bold No Image
.basis-96 .basis-96
%h3.mt-4.text-lg.font-bold Options %h3.mt-4.text-lg.font-bold Options
.grid.grid-cols-2.gap-3.mx-10 .grid.grid-cols-2.gap-3.mx-10

View File

@ -1,17 +0,0 @@
= render "layouts/merged_header"
.grid.grid-cols-6.gap-2.m-8
- content_for :hidden do
= hidden_field_tag :redirect , merged.section_set_image_path(@section.id,image: "NEW")
= form_tag(merged.images_path, multipart: true) do
= render "merged/images/new_image"
-@images.each do |image|
.flex.flex-col.justify-start.border.rounded.border-gray-100.drop-shadow-lg
.flex.justify-between
.text-xl.m-2= image.name
%strong.inline-block.rounded.bg-yellow-50.px-2.py-3.text-md.font-medium
= aspect_ratio(image)
.p-2.object-contain
= link_to( merged.section_set_image_path( image: image.name)) do
=image_tag(image.asset_name )