2017-09-10 17:25:29 +05:30
|
|
|
- breadcrumb_title "Repository"
|
2015-09-25 12:07:36 +05:30
|
|
|
- page_title "New File", @path.presence, @ref
|
2016-09-13 17:45:13 +05:30
|
|
|
- content_for :page_specific_javascripts do
|
|
|
|
= page_specific_javascript_tag('lib/ace.js')
|
2017-08-17 22:00:37 +05:30
|
|
|
.editor-title-row
|
|
|
|
%h3.page-title.blob-new-page-title
|
|
|
|
New file
|
2015-04-26 12:48:37 +05:30
|
|
|
.file-editor
|
2018-12-13 13:39:08 +05:30
|
|
|
= 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-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,
|
2017-09-10 17:25:29 +05:30
|
|
|
cancel_path: project_tree_path(@project, @id)
|
2020-04-08 14:13:33 +05:30
|
|
|
- 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-04-22 19:07:51 +05:30
|
|
|
dismiss_key: @project.id,
|
2020-04-08 14:13:33 +05:30
|
|
|
human_access: human_access } }
|