2015-09-17 06:16:24 -04:00
|
|
|
- page_title "New File", @path.presence, @ref
|
2016-06-24 14:26:11 -04:00
|
|
|
- content_for :page_specific_javascripts do
|
|
|
|
= page_specific_javascript_tag('lib/ace.js')
|
2016-11-03 17:38:54 -04:00
|
|
|
= page_specific_javascript_bundle_tag('blob_edit')
|
2015-09-17 06:16:24 -04:00
|
|
|
|
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-08-19 11:17:14 -04:00
|
|
|
= form_tag(namespace_project_create_blob_path(@project.namespace, @project, @id), method: :post, class: 'form-horizontal js-edit-blob-form js-new-blob-form js-quick-submit js-requires-input', data: blob_editor_paths) 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)
|