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

40 lines
1.9 KiB
Text
Raw Normal View History

2018-12-13 13:39:08 +05:30
- @hide_breadcrumbs = true
2017-09-10 17:25:29 +05:30
- @hide_top_links = true
2019-09-30 21:07:59 +05:30
- page_title _('New Project')
- header_title _("Projects"), dashboard_projects_path
2021-06-08 01:23:25 +05:30
- add_page_specific_style 'page_bundles/new_namespace'
2015-12-23 02:04:40 +05:30
2021-01-29 00:20:46 +05:30
.project-edit-container.gl-mt-5
2014-09-02 18:07:02 +05:30
.project-edit-errors
= render 'projects/errors'
2020-06-23 00:09:42 +05:30
2021-06-08 01:23:25 +05:30
.js-new-project-creation{ data: { is_ci_cd_available: (ci_cd_projects_available? if Gitlab.ee?).to_s, has_errors: @project.errors.any?.to_s, new_project_guidelines: brand_new_project_guidelines, push_to_create_project_command: push_to_create_project_command, working_with_projects_help_path: help_page_path("user/project/working_with_projects") } }
2020-06-23 00:09:42 +05:30
2021-02-22 17:27:13 +05:30
.row{ 'v-cloak': true }
2021-06-08 01:23:25 +05:30
#blank-project-pane.tab-pane.active
2021-12-11 22:18:48 +05:30
= form_for @project, html: { class: 'new_project gl-mt-3' } do |f|
2021-06-08 01:23:25 +05:30
= render 'new_project_fields', f: f, project_name_id: "blank-project-name"
#create-from-template-pane.tab-pane
.gl-card.gl-my-5
.gl-card-body
%div
- contributing_templates_url = 'https://gitlab.com/gitlab-org/project-templates/contributing'
- link_start = '<a href="%{url}" target="_blank" rel="noopener noreferrer">'.html_safe % { url: contributing_templates_url }
= _('Learn how to %{link_start}contribute to the built-in templates%{link_end}').html_safe % { link_start: link_start, link_end: '</a>'.html_safe }
= form_for @project, html: { class: 'new_project' } do |f|
.project-template
.form-group
2019-07-31 22:56:46 +05:30
%div
2021-06-08 01:23:25 +05:30
= render 'project_templates', f: f, project: @project
2014-09-02 18:07:02 +05:30
2021-06-08 01:23:25 +05:30
#import-project-pane.tab-pane.js-toggle-container
- if import_sources_enabled?
= render 'import_project_pane'
- else
.nothing-here-block
%h4= s_('ProjectsNew|No import options available')
%p= s_('ProjectsNew|Contact an administrator to enable options for importing your project.')
2019-07-31 22:56:46 +05:30
2021-06-08 01:23:25 +05:30
= render_if_exists 'projects/new_ci_cd_only_project_pane'