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