2020-07-28 23:09:34 +05:30
|
|
|
- breadcrumb_title _("Repository")
|
|
|
|
- page_title _("New File"), @path.presence, @ref
|
|
|
|
- unless Feature.enabled?(:monaco_blobs)
|
|
|
|
- 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 } }
|