Sha256: 62ae1c6fcf4d27209254bd5a53e4503052c2a9c2fd87eca3beddedbd4b5c9966

Contents?: true

Size: 460 Bytes

Versions: 8

Compression:

Stored size: 460 Bytes

Contents

ul.list-group.attachments
  - ::Dorsale::Alexandrie::Attachment.where(attachable: attachable).each do |a|
    li.list-group-item.attachment
      = link_to a, a.file.url, download: a.download_filename

      .pull-right
        - if can?(:update, a)
          = update_button dorsale.edit_alexandrie_attachment_path(a), action: :rename

        = " "

        - if can?(:delete, a)
          = delete_button dorsale.alexandrie_attachment_path(a), remote: true

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
dorsale-3.0.3 app/views/dorsale/alexandrie/attachments/_list.html.slim
dorsale-3.0.2 app/views/dorsale/alexandrie/attachments/_list.html.slim
dorsale-3.0.1 app/views/dorsale/alexandrie/attachments/_list.html.slim
dorsale-3.0.0 app/views/dorsale/alexandrie/attachments/_list.html.slim
dorsale-2.7.3 app/views/dorsale/alexandrie/attachments/_list.html.slim
dorsale-2.7.2 app/views/dorsale/alexandrie/attachments/_list.html.slim
dorsale-2.7.1 app/views/dorsale/alexandrie/attachments/_list.html.slim
dorsale-2.7.0 app/views/dorsale/alexandrie/attachments/_list.html.slim