Sha256: 9b0ca1b6114a5c01a856022ea371c8b1bfcab9260619fe241ae07ef68560943f

Contents?: true

Size: 445 Bytes

Versions: 4

Compression:

Stored size: 445 Bytes

Contents

- type ||= nil
- files_scope = (type == 'image') ? @site.files.images : @site.files

.box.file-uploader
  = form_for :file, :url => cms_admin_site_files_path(@site), :html => {:multipart => true} do |form|
    %span.btn.btn-file
      = t('.button')
      = form.file_field :file, :multiple => true, :id => nil
  
  .uploaded-files
    - files_scope.order(:label).each do |file|
      = render :partial => 'cms_admin/files/file', :object => file

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
comfortable_mexican_sofa-1.8.0 app/views/cms_admin/files/_index.html.haml
comfortable_mexican_sofa-1.7.3 app/views/cms_admin/files/_index.html.haml
comfortable_mexican_sofa-1.7.1 app/views/cms_admin/files/_index.html.haml
comfortable_mexican_sofa-1.7.0 app/views/cms_admin/files/_index.html.haml