Sha256: df3e6958720cf9b8c0911cad03ef4aee6d571a40f2f03eef818831301cc10155

Contents?: true

Size: 618 Bytes

Versions: 4

Compression:

Stored size: 618 Bytes

Contents

.item.image{class: ('selected' if image.id.to_s.try(:in?, params[:selected_ids].to_a))}
  - unless defined?(simple) && simple
    .overlay
      = link_to admin_image_path(image), method: :delete, class: 'icon-only delete-photo-link', data: {confirm: t('spina.images.delete_confirmation')} do
        = t('spina.images.delete')
      %span.photo-name= truncate(image.name, length: 125)
    = radio_button_tag :image_id, image.id
    = check_box_tag 'image_ids[]', image.id, image.id.to_s.try(:in?, params[:selected_ids].to_a)
    
  = image_tag main_app.url_for(image.variant(resize: '300x300^', crop: "300x300+0+0"))

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
spina-1.0.3 app/views/spina/admin/images/_image.html.haml
spina-1.0.2 app/views/spina/admin/images/_image.html.haml
spina-1.0.1 app/views/spina/admin/images/_image.html.haml
spina-1.0.0 app/views/spina/admin/images/_image.html.haml