2020-06-22 08:08:47 -04:00
|
|
|
- breadcrumb_title _("Repository")
|
|
|
|
- page_title _("New File"), @path.presence, @ref
|
2020-06-19 08:09:07 -04:00
|
|
|
|
2021-05-12 08:10:24 -04:00
|
|
|
%h3.page-title.blob-new-page-title#js-code-quality-walkthrough
|
|
|
|
= _('New file')
|
|
|
|
.js-code-quality-walkthrough{ data: { step: 'commit_ci_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
|
|
|
|
2021-05-12 08:10:24 -04:00
|
|
|
- if params[:code_quality_walkthrough]
|
|
|
|
= hidden_field_tag 'code_quality_walkthrough', 'true'
|
2014-10-02 18:13:23 -04:00
|
|
|
= hidden_field_tag 'content', '', id: 'file-content'
|
|
|
|
= render 'projects/commit_button', ref: @ref,
|
2021-05-12 08:10:24 -04:00
|
|
|
cancel_path: project_tree_path(@project, @id)
|
2020-03-09 14:07:59 -04:00
|
|
|
- if should_suggest_gitlab_ci_yml?
|
2020-10-15 02:09:14 -04:00
|
|
|
.js-suggest-gitlab-ci-yml-commit-changes{ data: { target: '#commit-changes',
|
2020-08-26 14:11:43 -04:00
|
|
|
merge_request_path: params[:mr_path],
|
2020-03-09 14:07:59 -04:00
|
|
|
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 } }
|