Commit d584c406 authored by Ciro Santilli's avatar Ciro Santilli

Move new blob commit message textarea below editor

- match edit blob view
- you enter the commit message *after* you make the modifications
parent e261de25
...@@ -19,14 +19,14 @@ ...@@ -19,14 +19,14 @@
Encoding Encoding
.col-sm-10 .col-sm-10
= select_tag :encoding, options_for_select([ "base64", "text" ], "text"), class: 'form-control' = select_tag :encoding, options_for_select([ "base64", "text" ], "text"), class: 'form-control'
= render 'shared/commit_message_container', params: params,
placeholder: 'Add new file'
.file-holder .file-holder
.file-title .file-title
%i.fa.fa-file %i.fa.fa-file
.file-content.code .file-content.code
%pre#editor= params[:content] %pre#editor= params[:content]
= render 'shared/commit_message_container', params: params,
placeholder: 'Add new file'
= hidden_field_tag 'content', '', id: 'file-content' = hidden_field_tag 'content', '', id: 'file-content'
= render 'projects/commit_button', ref: @ref, = render 'projects/commit_button', ref: @ref,
cancel_path: project_tree_path(@project, @id) cancel_path: project_tree_path(@project, @id)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment