2015-09-25 12:07:36 +05:30
|
|
|
- page_title "New File", @path.presence, @ref
|
|
|
|
|
2015-12-23 02:04:40 +05:30
|
|
|
%h3.page-title
|
|
|
|
New File
|
2015-09-25 12:07:36 +05:30
|
|
|
|
2015-04-26 12:48:37 +05:30
|
|
|
.file-editor
|
2016-06-02 11:05:42 +05:30
|
|
|
= form_tag(namespace_project_create_blob_path(@project.namespace, @project, @id), method: :post, class: 'form-horizontal js-new-blob-form js-quick-submit js-requires-input') do
|
2015-04-26 12:48:37 +05:30
|
|
|
= render 'projects/blob/editor', ref: @ref
|
2015-11-26 14:37:03 +05:30
|
|
|
= render 'shared/new_commit_form', placeholder: "Add new file"
|
2015-04-26 12:48:37 +05:30
|
|
|
|
|
|
|
= hidden_field_tag 'content', '', id: 'file-content'
|
|
|
|
= render 'projects/commit_button', ref: @ref,
|
|
|
|
cancel_path: namespace_project_tree_path(@project.namespace, @project, @id)
|
|
|
|
|
|
|
|
:javascript
|
2016-06-02 11:05:42 +05:30
|
|
|
blob = new EditBlob(gon.relative_url_root + "#{Gitlab::Application.config.assets.prefix}")
|
2015-11-26 14:37:03 +05:30
|
|
|
new NewCommitForm($('.js-new-blob-form'))
|