Sha256: da629aafbebda823cfe9495010049980284c9cecd1f8c01ccb5cdc07683d1a7d

Contents?: true

Size: 990 Bytes

Versions: 29

Compression:

Stored size: 990 Bytes

Contents

= render "dorsale/flash"

.panel.panel-default
  .panel-heading: .panel-title = ::Dorsale::Alexandrie::Attachment.ts

  = form_for(@attachment, as: :attachment, remote: true) do |f|
    = hidden_field_tag :authenticity_token, form_authenticity_token

    table
      = render "dorsale/alexandrie/attachments/header"

      tbody
        - if policy(::Dorsale::Alexandrie::Attachment).create?
          / Create only on index
          - if params[:action] == "index"
            = render "dorsale/alexandrie/attachments/new", attachable: @attachable
          - else
            = render "dorsale/alexandrie/attachments/new_disabled"

        - ::Dorsale::Alexandrie::Attachment.where(attachable: @attachable).each do |attachment|
          - if request.path == url_for(action: :edit, id: attachment)
            = render "dorsale/alexandrie/attachments/edit", attachment: attachment
          - else
            = render "dorsale/alexandrie/attachments/attachment", attachment: attachment

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
dorsale-3.9.6 app/views/dorsale/alexandrie/attachments/index.html.slim
dorsale-3.9.5 app/views/dorsale/alexandrie/attachments/index.html.slim
dorsale-3.9.4 app/views/dorsale/alexandrie/attachments/index.html.slim
dorsale-3.9.3 app/views/dorsale/alexandrie/attachments/index.html.slim
dorsale-3.9.2 app/views/dorsale/alexandrie/attachments/index.html.slim
dorsale-3.9.1 app/views/dorsale/alexandrie/attachments/index.html.slim
dorsale-3.9.0 app/views/dorsale/alexandrie/attachments/index.html.slim
dorsale-3.8.1 app/views/dorsale/alexandrie/attachments/index.html.slim
dorsale-3.8.0 app/views/dorsale/alexandrie/attachments/index.html.slim
dorsale-3.7.8 app/views/dorsale/alexandrie/attachments/index.html.slim
dorsale-3.7.7 app/views/dorsale/alexandrie/attachments/index.html.slim
dorsale-3.7.6 app/views/dorsale/alexandrie/attachments/index.html.slim
dorsale-3.7.5 app/views/dorsale/alexandrie/attachments/index.html.slim
dorsale-3.7.4 app/views/dorsale/alexandrie/attachments/index.html.slim
dorsale-3.7.2 app/views/dorsale/alexandrie/attachments/index.html.slim
dorsale-3.7.1 app/views/dorsale/alexandrie/attachments/index.html.slim
dorsale-3.7.0 app/views/dorsale/alexandrie/attachments/index.html.slim
dorsale-3.6.1 app/views/dorsale/alexandrie/attachments/index.html.slim
dorsale-3.6.0 app/views/dorsale/alexandrie/attachments/index.html.slim
dorsale-3.5.2 app/views/dorsale/alexandrie/attachments/index.html.slim