cirandas.net

ref: master

app/views/cms/_text_editor_sidebar.html.erb


<% default_folder = content_id_to_str default_folder_for_image_upload(profile) %>

'> '> '>
<%= _('Insert media') %><%= button('vertical-toggle', _('Show/Hide'), '#') %>
<%= render(:partial => 'textile_quick_reference') if @article.editor?(Article::Editor::TEXTILE) %>
<%= form_tag({ :action => 'media_upload' }, :multipart => true) do %>
<%= select_profile_folder( _('Choose folder to upload files:'), :parent_id, profile, default_folder, {}, {}, "type='Folder' or type='Gallery'" ) %> <%= button(:newfolder, _('New folder'), '#', :id => 'new-folder-button') %>

<%= file_field_tag('file', :multiple => true) %>

<% end %>
<%= link_to(_('Hide all uploads'), nil, :id => 'hide-uploads', :style => 'display: none;', 'data-bootstraped' => false) %> <%= link_to(_('Show all uploads'), nil, :id => 'show-uploads', :style => 'display: none;') %>
'published_media_items', :profile => profile.identifier}) %>'> <%= select_profile_folder(nil, :parent_id, profile, 'recent-media', {}, {}, "type='Folder' or type='Gallery'", {:root_label => _('Recent media')}) %> <%= labelled_form_field _('Search among your uploaded files'), text_field_tag('q', '', placeholder: _('Write words about the file you are looking for')) %> <%= render :partial => 'drag_and_drop_note' %>
<%= render :partial => 'published_media_items' %>
<%= render :partial => 'media_new_folder', :locals => {:default_folder => default_folder} %> <%= javascript_include_tag 'vendor/jquery.fileupload.js', 'vendor/tmpl.js', 'media-panel.js' %>