Sha256: 3b976fc811b2ebb956878d0737a13cee7ba78902930b4d358ec165c8a9468547

Contents?: true

Size: 865 Bytes

Versions: 16

Compression:

Stored size: 865 Bytes

Contents

= index_header do
  = content_tag(:div,nil,  id: "new-#{@attachable_resource}", class: 'd-none')
  .pull-left
    = count_div "#{@attachable_resource.pluralize}-count" do
      = print_count @exam_portion.attachments.count, t(:'attachment.list')
  .pull-right
    = ajax_link_to_new t(:'attachment.new'), [:new, @exam, @attachable, :attachment], id: "new-#{@attachable_resource}-link"

= index_body do
  = table_for "#{@attachable_resource.pluralize}-index" do
    thead
      tr
        = th t(:'attachment.name')
        = th t(:'attachment.description')
        = th t(:'attachment.file_name')
        = th t(:'attachment.file_type')
        = th t(:'attachment.file_size')
        = th_actions 3
    tbody
      =render partial: 'gaku/attachments/attachment', collection: @attachable.attachments, as: :attachment, locals: { nested_resources: nested_resources }

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
gaku_frontend-0.3.0 app/views/gaku/attachments/_attachments.html.slim
gaku_frontend-0.3.0.pre.4 app/views/gaku/attachments/_attachments.html.slim
gaku_frontend-0.3.0.pre.3 app/views/gaku/attachments/_attachments.html.slim
gaku_frontend-0.3.0.pre.2 app/views/gaku/attachments/_attachments.html.slim
gaku_frontend-0.3.0.pre.1 app/views/gaku/attachments/_attachments.html.slim
gaku_frontend-0.3.0.pre.0 app/views/gaku/attachments/_attachments.html.slim
gaku-0.2.4 frontend/app/views/gaku/attachments/_attachments.html.slim
gaku_frontend-0.2.4 app/views/gaku/attachments/_attachments.html.slim
gaku-0.2.3 frontend/app/views/gaku/attachments/_attachments.html.slim
gaku_frontend-0.2.3 app/views/gaku/attachments/_attachments.html.slim
gaku-0.2.2 frontend/app/views/gaku/attachments/_attachments.html.slim
gaku_frontend-0.2.2 app/views/gaku/attachments/_attachments.html.slim
gaku-0.2.1 frontend/app/views/gaku/attachments/_attachments.html.slim
gaku_frontend-0.2.1 app/views/gaku/attachments/_attachments.html.slim
gaku-0.2.0 frontend/app/views/gaku/attachments/_attachments.html.slim
gaku_frontend-0.2.0 app/views/gaku/attachments/_attachments.html.slim