Sha256: 3c1eb3969964adb458613607e8bbce5d4da2b6866047577fa0dc5daa4632862a

Contents?: true

Size: 1.09 KB

Versions: 2

Compression:

Stored size: 1.09 KB

Contents

- content_for :right_column do
  = render "comfy/admin/cms/categories/index", type: "Comfy::Cms::File"

:ruby
  session_id = request.session_options[:id]
  session_id_value = session_id.respond_to?(:public_id) ? session_id.public_id : session_id.to_s
  cms_uploader_data = {
    cms_uploader: {
      url: comfy_admin_cms_site_files_path(@site, source: :plupload, categories: params[:categories]),
      token: { name: request_forgery_protection_token, value: form_authenticity_token },
      session: { name: Rails.application.config.session_options[:key], value: session_id_value }
    }
  }

#cms-uploader{data: cms_uploader_data}
  #cms-uploader-drag-drop-target

  .page-header
    = link_to t('.new_link'), new_comfy_admin_cms_site_file_path(@site), class: "btn btn-secondary float-right", id: "cms-uploader-browse"
    %h2= t('.title')

  = comfy_admin_partial "comfy/admin/cms/partials/files_before"

  = comfy_paginate @files

  %ul.list.sortable.cms-uploader-filelist
    = render partial: "file", collection: @files

  = comfy_admin_partial "comfy/admin/cms/partials/files_after"

  = comfy_paginate @files

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
comfortable_media_surfer-3.0.0 app/views/comfy/admin/cms/files/index.html.haml
comfortable_mexican_sofa-2.0.19 app/views/comfy/admin/cms/files/index.html.haml