2017-07-07 06:51:03 -04:00
- @breadcrumb_link = dashboard_projects_path
2017-07-12 04:16:32 -04:00
- breadcrumb_title "Projects"
2017-07-06 12:24:03 -04:00
- @hide_top_links = true
2015-05-01 04:39:11 -04:00
- page_title 'New Project'
2016-05-26 12:06:11 -04:00
- header_title "Projects", dashboard_projects_path
2018-02-14 18:52:36 -05:00
- active_tab = local_assigns.fetch(:active_tab, 'blank')
2015-12-02 08:27:29 -05:00
2013-08-12 10:21:57 -04:00
.project-edit-container
2013-05-14 05:46:41 -04:00
.project-edit-errors
2013-05-14 05:56:03 -04:00
= render 'projects/errors'
2016-06-07 21:10:55 -04:00
.row.prepend-top-default
.col-lg-3.profile-settings-sidebar
%h4.prepend-top-0
2018-02-20 21:23:49 -05:00
= _('New project')
2017-10-11 05:07:19 -04:00
%p
2018-02-20 21:23:49 -05:00
- among_other_things_link = link_to _('among other things'), help_page_path("user/project/index.md", anchor: "projects-features"), target: '_blank'
= _('A project is where you house your files (repository), plan your work (issues), and publish your documentation (wiki), %{among_other_things_link}.').html_safe % { among_other_things_link: among_other_things_link }
2017-10-11 05:07:19 -04:00
%p
2018-02-20 21:23:49 -05:00
= _('All features are enabled for blank projects, from templates, or when importing, but you can disable them afterward in the project settings.')
2017-12-07 07:54:49 -05:00
.md
= brand_new_project_guidelines
2018-02-23 04:00:19 -05:00
%p
%strong= _("Tip:")
= _("You can also create a project from the command line.")
%a.push-new-project-tip{ data: { title: _("Push to create a project") }, href: help_page_path('gitlab-basics/create-project', anchor: 'push-to-create-a-new-project'), target: "_blank", rel: "noopener noreferrer" }
= _("Show command")
%template.push-new-project-tip-template= render partial: "new_project_push_tip"
2017-07-30 06:56:40 -04:00
.col-lg-9.js-toggle-container
2018-04-19 23:34:20 -04:00
%ul.nav.nav-tabs.nav-links.gitlab-tabs{ role: 'tablist' }
2018-06-05 10:47:06 -04:00
%li.nav-item{ role: 'presentation' }
%a.nav-link.active{ href: '#blank-project-pane', id: 'blank-project-tab', data: { toggle: 'tab' }, role: 'tab' }
2018-04-09 17:50:40 -04:00
%span.d-none.d-sm-block Blank project
2018-04-10 16:38:32 -04:00
%span.d-block.d-sm-none Blank
2018-06-05 10:47:06 -04:00
%li.nav-item{ role: 'presentation' }
%a.nav-link{ href: '#create-from-template-pane', id: 'create-from-template-tab', data: { toggle: 'tab' }, role: 'tab' }
2018-04-09 17:50:40 -04:00
%span.d-none.d-sm-block Create from template
2018-04-10 16:38:32 -04:00
%span.d-block.d-sm-none Template
2018-06-05 10:47:06 -04:00
%li.nav-item{ role: 'presentation' }
%a.nav-link{ href: '#import-project-pane', id: 'import-project-tab', data: { toggle: 'tab' }, role: 'tab' }
2018-04-09 17:50:40 -04:00
%span.d-none.d-sm-block Import project
2018-04-10 16:38:32 -04:00
%span.d-block.d-sm-none Import
2017-10-11 05:07:19 -04:00
.tab-content.gitlab-tab-content
2018-02-20 21:23:49 -05:00
.tab-pane{ id: 'blank-project-pane', class: active_when(active_tab == 'blank'), role: 'tabpanel' }
2017-10-11 05:07:19 -04:00
= form_for @project, html: { class: 'new_project' } do |f|
= render 'new_project_fields', f: f, project_name_id: "blank-project-name"
2018-02-20 21:23:49 -05:00
.tab-pane.no-padding{ id: 'create-from-template-pane', class: active_when(active_tab == 'template'), role: 'tabpanel' }
2017-10-11 05:07:19 -04:00
= form_for @project, html: { class: 'new_project' } do |f|
2017-07-30 06:56:40 -04:00
.project-template
2017-08-01 08:23:04 -04:00
.form-group
2017-07-31 12:33:10 -04:00
%div
2017-07-30 06:56:40 -04:00
= render 'project_templates', f: f
2017-10-11 05:07:19 -04:00
2018-02-20 21:23:49 -05:00
.tab-pane.import-project-pane.js-toggle-container{ id: 'import-project-pane', class: active_when(active_tab == 'import'), role: 'tabpanel' }
2018-07-02 05:16:24 -04:00
- if import_sources_enabled?
= render 'import_project_pane', active_tab: active_tab
- else
.nothing-here-block
%h4 No import options available
%p Contact an administrator to enable options for importing your project.
2013-05-14 05:46:41 -04:00
2018-04-09 14:50:35 -04:00
.save-project-loader.d-none
2014-06-21 03:41:44 -04:00
.center
2014-02-05 13:30:57 -05:00
%h2
2014-10-01 18:21:29 -04:00
%i.fa.fa-spinner.fa-spin
2014-02-05 13:30:57 -05:00
Creating project & repository.
2013-08-12 10:21:57 -04:00
%p Please wait a moment, this page will automatically refresh when ready.