2015-09-17 06:16:24 -04:00
|
|
|
- page_title "New File", @path.presence, @ref
|
|
|
|
|
2015-12-02 08:27:29 -05:00
|
|
|
%h3.page-title
|
|
|
|
New File
|
2015-09-10 10:18:40 -04:00
|
|
|
|
2013-11-05 03:28:49 -05:00
|
|
|
.file-editor
|
2016-02-12 16:28:53 -05:00
|
|
|
= 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-01-26 23:57:42 -05:00
|
|
|
= render 'projects/blob/editor', ref: @ref
|
2015-11-17 12:53:56 -05:00
|
|
|
= render 'shared/new_commit_form', placeholder: "Add new file"
|
2015-10-19 18:25:35 -04:00
|
|
|
|
2014-10-02 18:13:23 -04:00
|
|
|
= hidden_field_tag 'content', '', id: 'file-content'
|
|
|
|
= render 'projects/commit_button', ref: @ref,
|
2015-01-24 13:02:58 -05:00
|
|
|
cancel_path: namespace_project_tree_path(@project.namespace, @project, @id)
|
2013-11-05 03:28:49 -05:00
|
|
|
|
|
|
|
:javascript
|
2016-04-11 09:49:25 -04:00
|
|
|
blob = new EditBlob(gon.relative_url_root + "#{Gitlab::Application.config.assets.prefix}")
|
2015-11-17 12:53:56 -05:00
|
|
|
new NewCommitForm($('.js-new-blob-form'))
|