Welcome to mirror list, hosted at ThFree Co, Russian Federation.

new.html.haml « blob « projects « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2aeffa88c8f92b0cba963a574bd91cae352177a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
- breadcrumb_title _("Repository")
- page_title _("New File"), @path.presence, @ref

%h3.page-title.blob-new-page-title#js-code-quality-walkthrough
  = _('New file')
  .js-code-quality-walkthrough{ data: { step: 'commit_ci_file' } }
.file-editor
  = 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
    = render 'projects/blob/editor', ref: @ref
    = render 'shared/new_commit_form', placeholder: "Add new file"

    - if params[:code_quality_walkthrough]
      = hidden_field_tag 'code_quality_walkthrough', 'true'
    = hidden_field_tag 'content', '', id: 'file-content'
    = render 'projects/commit_button', ref: @ref,
      cancel_path: project_tree_path(@project, @id)
    - if should_suggest_gitlab_ci_yml?
      .js-suggest-gitlab-ci-yml-commit-changes{ data: { target: '#commit-changes',
        merge_request_path: params[:mr_path],
        track_label: 'suggest_commit_first_project_gitlab_ci_yml',
        dismiss_key: @project.id,
        human_access: human_access } }