Sha256: c04fb5420a8f3e4c33ec7806551e77874b1a495fe6040f473d891e57b7aa061a

Contents?: true

Size: 480 Bytes

Versions: 7

Compression:

Stored size: 480 Bytes

Contents

= link_to [:admin, media_folder], class: 'item media-folder', data: {add_to_media_folder_url: add_to_media_folder_admin_images_url(media_folder)} do
  .media-folder-thumbnail{data: {badge: media_folder.images.count}}
    - if media_folder.images.any?
      = image_tag variant(media_folder.images.last.file, resize: '144x144^', crop: "144x144+0+0")
    - else
      = image_tag 'spina/media_folder_placeholder.svg'
    .media-folder-shadow
  .media-folder-name= media_folder.name

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
spina-2.0.0.alpha app/views/spina/admin/media_folders/_media_folder.html.haml
spina-1.2.0 app/views/spina/admin/media_folders/_media_folder.html.haml
spina-1.1.4 app/views/spina/admin/media_folders/_media_folder.html.haml
spina-1.1.3 app/views/spina/admin/media_folders/_media_folder.html.haml
spina-1.1.2 app/views/spina/admin/media_folders/_media_folder.html.haml
spina-1.1.1 app/views/spina/admin/media_folders/_media_folder.html.haml
spina-1.1.0 app/views/spina/admin/media_folders/_media_folder.html.haml