Sha256: 517d99a75583d32100ed11a3715af7970f19ba82b4dbf78e68479cba9f7b56f7

Contents?: true

Size: 761 Bytes

Versions: 7

Compression:

Stored size: 761 Bytes

Contents

= table.batch_actions( actions: { destroy: destroy_many_attachments_path })
= table.acts_as_list_actions
= table.association :folder, label_method: :human, link_to: ->(r) { url_for(r.folder) }
= table.column :identifier, sort: true
= table.column :title, sort: true
= table.column :filename do |resource|
  - truncate(resource.asset.blob.filename.to_s)
= table.timestamp :created_at, sort: true
= table.column :asset do |resource|
  - capture_haml do
    = link_to(main_app.url_for(resource.asset), class: 'btn btn-primary btn-responsive btn-xs') do
      %i.fas.fa-download
      %span.btn-text= "#{t('.download')} (#{resource.asset.blob.content_type.split('/').last}, #{number_to_human_size(resource.asset.blob.byte_size)})"
= table.acts_as_published_actions

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
cmor_files_backend-0.0.60.pre app/views/cmor/files/backend/file_details/_index_table.html.haml
cmor_files_backend-0.0.59.pre app/views/cmor/files/backend/file_details/_index_table.html.haml
cmor_files_backend-0.0.58.pre app/views/cmor/files/backend/file_details/_index_table.html.haml
cmor_files_backend-0.0.57.pre app/views/cmor/files/backend/file_details/_index_table.html.haml
cmor_files_backend-0.0.56.pre app/views/cmor/files/backend/file_details/_index_table.html.haml
cmor_files_backend-0.0.55.pre app/views/cmor/files/backend/file_details/_index_table.html.haml
cmor_files_backend-0.0.54.pre app/views/cmor/files/backend/file_details/_index_table.html.haml