Sha256: fa00b566d2b4c01adeba7731aadc967eaa2ac6ed5e7800c37173a152a775212d

Contents?: true

Size: 606 Bytes

Versions: 2

Compression:

Stored size: 606 Bytes

Contents

.edit-view-documents
  .edit-product__editable
    %h2.heading.heading--5= pluralize(@product.documents.length, 'Document')
    %p.edit-product__editable-action= link_to 'Edit', catalog_product_documents_path(@product), class: 'button button--small', data: { dialog_button: '' }

    - if @product.documents_by_type.any?
      %ul.edit-product__data-list
        - @product.documents_by_type.each do |type, documents|
          %li
            %span
              - if type.blank?
                #{documents.count} without Type
              - else
                #{documents.count} for #{type.titleize}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
workarea-product_documents-1.0.1 app/views/workarea/admin/catalog_product_documents/_product_documents.html.haml
workarea-product_documents-1.0.0 app/views/workarea/admin/catalog_product_documents/_product_documents.html.haml