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')
|
2017-03-07 19:04:20 -05:00
|
|
|
= page_specific_javascript_bundle_tag('blob')
|
2017-04-03 13:54:40 -04:00
|
|
|
.editor-title-row
|
|
|
|
%h3.page-title.blob-new-page-title
|
|
|
|
New file
|
|
|
|
= render 'template_selectors'
|
2013-11-05 03:28:49 -05:00
|
|
|
.file-editor
|
2017-06-29 13:06:35 -04:00
|
|
|
= form_tag(project_create_blob_path(@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,
|
2017-06-29 13:06:35 -04:00
|
|
|
cancel_path: project_tree_path(@project, @id)
|