debian-mirror-gitlab/app/views/projects/blob/new.html.haml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
990 B
Text
Raw Normal View History

2020-07-28 23:09:34 +05:30
- breadcrumb_title _("Repository")
- page_title _("New File"), @path.presence, @ref
2022-10-11 01:57:18 +05:30
- add_page_specific_style 'page_bundles/editor'
2020-07-28 23:09:34 +05:30
2022-07-23 23:45:48 +05:30
%h1.page-title.blob-new-page-title.gl-font-size-h-display
2021-06-08 01:23:25 +05:30
= _('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,
2021-06-08 01:23:25 +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 } }