2017-07-12 04:16:32 -04:00
|
|
|
- breadcrumb_title "Repository"
|
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-04-03 13:54:40 -04:00
|
|
|
.editor-title-row
|
|
|
|
%h3.page-title.blob-new-page-title
|
|
|
|
New file
|
2013-11-05 03:28:49 -05:00
|
|
|
.file-editor
|
2018-10-05 12:21:21 -04:00
|
|
|
= form_tag(project_create_blob_path(@project, @id), method: :post, class: 'js-edit-blob-form js-new-blob-form js-quick-submit js-requires-input', data: blob_editor_paths(@project)) 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)
|
2020-03-09 14:07:59 -04:00
|
|
|
- if should_suggest_gitlab_ci_yml?
|
|
|
|
.js-suggest-gitlab-ci-yml-commit-changes{ data: { toggle: 'popover',
|
|
|
|
target: '#commit-changes',
|
|
|
|
track_label: 'suggest_commit_first_project_gitlab_ci_yml',
|
2020-03-25 05:08:11 -04:00
|
|
|
dismiss_key: @project.id,
|
2020-03-12 17:09:45 -04:00
|
|
|
human_access: human_access } }
|