2020-07-28 23:09:34 +05:30
|
|
|
- breadcrumb_title _("Repository")
|
|
|
|
- page_title _("New File"), @path.presence, @ref
|
|
|
|
|
2021-02-22 17:27:13 +05:30
|
|
|
%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?
|
2021-01-03 14:25:43 +05:30
|
|
|
.js-suggest-gitlab-ci-yml-commit-changes{ data: { target: '#commit-changes',
|
2020-11-24 15:15:51 +05:30
|
|
|
merge_request_path: params[:mr_path],
|
2020-04-08 14:13:33 +05:30
|
|
|
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 } }
|