Wiki toolbar for comments
This commit is contained in:
parent
514775c42b
commit
71075f26db
@ -41,6 +41,7 @@ class DmsfUploadController < ApplicationController
|
|||||||
end
|
end
|
||||||
|
|
||||||
def upload_files
|
def upload_files
|
||||||
|
@wiki = Setting.text_formatting != 'HTML'
|
||||||
uploaded_files = params[:dmsf_attachments]
|
uploaded_files = params[:dmsf_attachments]
|
||||||
@uploads = []
|
@uploads = []
|
||||||
if uploaded_files
|
if uploaded_files
|
||||||
|
|||||||
@ -97,4 +97,5 @@
|
|||||||
|
|
||||||
<% if wiki %>
|
<% if wiki %>
|
||||||
<%= wikitoolbar_for 'dmsf_file_revision_description' %>
|
<%= wikitoolbar_for 'dmsf_file_revision_description' %>
|
||||||
|
<%= wikitoolbar_for 'dmsf_file_revision_comment' %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|||||||
@ -45,7 +45,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<p>
|
<p>
|
||||||
<%= label_tag "commited_files[#{i}][description]", l(:label_description) %>
|
<%= label_tag "commited_files[#{i}][description]", l(:label_description) %>
|
||||||
<%= text_area_tag "commited_files[#{i}][description]", upload.description, rows: 6, class: 'wiki-edit' %>
|
<%= text_area_tag "commited_files[#{i}][description]", upload.description, rows: 6,
|
||||||
|
class: wiki ? 'wiki-edit' : 'dmsf-description' %>
|
||||||
</p>
|
</p>
|
||||||
<div class="clear">
|
<div class="clear">
|
||||||
<div class="splitcontentright">
|
<div class="splitcontentright">
|
||||||
@ -92,8 +93,12 @@
|
|||||||
</div>
|
</div>
|
||||||
<p>
|
<p>
|
||||||
<%= label_tag "commited_files[#{i}][comment]", l(:label_comment) %>
|
<%= label_tag "commited_files[#{i}][comment]", l(:label_comment) %>
|
||||||
<%= text_area_tag "commited_files[#{i}][comment]", upload.comment, rows: 2, class: 'wiki-edit' %>
|
<%= text_area_tag "commited_files[#{i}][comment]", upload.comment, rows: 2,
|
||||||
|
class: wiki ? 'wiki-edit' : 'dmsf-description' %>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<%= wikitoolbar_for "commited_files_#{i}_description" %>
|
<% if wiki %>
|
||||||
|
<%= wikitoolbar_for "commited_files_#{i}_description" %>
|
||||||
|
<%= wikitoolbar_for "commited_files_#{i}_comment" %>
|
||||||
|
<% end %>
|
||||||
|
|||||||
@ -39,7 +39,7 @@
|
|||||||
<% if upload.locked %>
|
<% if upload.locked %>
|
||||||
<%= render partial: 'upload_file_locked', locals: { upload: upload, i: i } %>
|
<%= render partial: 'upload_file_locked', locals: { upload: upload, i: i } %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<%= render partial: 'upload_file', locals: { upload: upload, i: i } %>
|
<%= render partial: 'upload_file', locals: { upload: upload, i: i, wiki: @wiki } %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<div class="form-actions">
|
<div class="form-actions">
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user