Sha256: cbb4b964b38f734246293996f90d61f306658e929cd6d45fe5fcc9ae63cadc79

Contents?: true

Size: 1.04 KB

Versions: 6

Compression:

Stored size: 1.04 KB

Contents

%h2= Cmor::Showcase::FileDetail.model_name.human(count: :other)

= collection_table(collection: @resource.file_details, resource_class: Cmor::Showcase::FileDetail) do |table|
  = table.acts_as_list_actions
  = table.id
  = table.thumbnail :asset
  = table.column :title
  = table.column :blob_filename do |resource|
    - resource.asset.blob.filename
  = table.column :blob_byte_size do |resource|
    - number_to_human_size(resource.asset.blob.byte_size)
  = table.column :blob_checksum do |resource|
    - resource.asset.blob.checksum
  = table.timestamps format: :short
  = table.column :actions do |resource|
    - capture_haml do
      = link_to(main_app.url_for(resource.asset), class: 'btn btn-xs btn-responsive btn-primary') do
        %i.fas.fa-download
        %span.btn-text= t('.download')
      = link_to([resource], id: "#{dom_id(resource)}-destroy", class: 'btn btn-xs btn-responsive btn-danger', method: :delete, data: { confirm: t('rao.component.collection_table.destroy_confirmation') }) do
        %i.fas.fa-fire
        %span.btn-text= t('.destroy')

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
cmor_showcase-0.0.60.pre app/views/cmor/showcase/items/_after_show_table.html.haml
cmor_showcase-0.0.59.pre app/views/cmor/showcase/items/_after_show_table.html.haml
cmor_showcase-0.0.58.pre app/views/cmor/showcase/items/_after_show_table.html.haml
cmor_showcase-0.0.57.pre app/views/cmor/showcase/items/_after_show_table.html.haml
cmor_showcase-0.0.56.pre app/views/cmor/showcase/items/_after_show_table.html.haml
cmor_showcase-0.0.55.pre app/views/cmor/showcase/items/_after_show_table.html.haml