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

72 lines
4.2 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
2015-09-11 14:41:01 +05:30
- page_title 'New Project'
- header_title "Projects", dashboard_projects_path
2018-03-27 19:54:05 +05:30
- active_tab = local_assigns.fetch(:active_tab, 'blank')
2015-12-23 02:04:40 +05:30
2019-02-15 15:39:39 +05:30
.project-edit-container.prepend-top-default
2014-09-02 18:07:02 +05:30
.project-edit-errors
= render 'projects/errors'
2019-02-15 15:39:39 +05:30
.row
2016-08-24 12:49:21 +05:30
.col-lg-3.profile-settings-sidebar
%h4.prepend-top-0
2018-03-27 19:54:05 +05:30
= _('New project')
2018-03-17 18:26:18 +05:30
%p
2018-03-27 19:54:05 +05:30
- 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 }
2018-03-17 18:26:18 +05:30
%p
2018-03-27 19:54:05 +05:30
= _('All features are enabled for blank projects, from templates, or when importing, but you can disable them afterward in the project settings.')
2019-03-02 22:35:43 +05:30
%p
- pages_getting_started_guide = link_to _('Pages getting started guide'), help_page_path("user/project/pages/getting_started_part_two", anchor: "fork-a-project-to-get-started-from"), target: '_blank'
= _('Information about additional Pages templates and how to install them can be found in our %{pages_getting_started_guide}.').html_safe % { pages_getting_started_guide: pages_getting_started_guide }
2018-03-17 18:26:18 +05:30
.md
= brand_new_project_guidelines
2018-03-27 19:54:05 +05:30
%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-09-10 17:25:29 +05:30
.col-lg-9.js-toggle-container
2018-11-08 19:23:39 +05:30
%ul.nav.nav-tabs.nav-links.gitlab-tabs{ role: 'tablist' }
%li.nav-item{ role: 'presentation' }
2018-12-05 23:21:45 +05:30
%a.nav-link.active{ href: '#blank-project-pane', id: 'blank-project-tab', data: { toggle: 'tab', track_label: 'blank_project', track_event: "click_tab" }, role: 'tab' }
2018-11-08 19:23:39 +05:30
%span.d-none.d-sm-block Blank project
%span.d-block.d-sm-none Blank
%li.nav-item{ role: 'presentation' }
2018-12-05 23:21:45 +05:30
%a.nav-link{ href: '#create-from-template-pane', id: 'create-from-template-tab', data: { toggle: 'tab', track_label: 'create_from_template', track_event: "click_tab" }, role: 'tab' }
2019-03-02 22:35:43 +05:30
%span.d-none.d-sm-block.qa-project-create-from-template-tab Create from template
2018-11-08 19:23:39 +05:30
%span.d-block.d-sm-none Template
%li.nav-item{ role: 'presentation' }
2018-12-05 23:21:45 +05:30
%a.nav-link{ href: '#import-project-pane', id: 'import-project-tab', data: { toggle: 'tab', track_label: 'import_project', track_event: "click_tab" }, role: 'tab' }
2018-11-08 19:23:39 +05:30
%span.d-none.d-sm-block Import project
%span.d-block.d-sm-none Import
2018-03-17 18:26:18 +05:30
.tab-content.gitlab-tab-content
2018-03-27 19:54:05 +05:30
.tab-pane{ id: 'blank-project-pane', class: active_when(active_tab == 'blank'), role: 'tabpanel' }
2018-03-17 18:26:18 +05:30
= form_for @project, html: { class: 'new_project' } do |f|
= render 'new_project_fields', f: f, project_name_id: "blank-project-name"
2018-03-27 19:54:05 +05:30
.tab-pane.no-padding{ id: 'create-from-template-pane', class: active_when(active_tab == 'template'), role: 'tabpanel' }
2018-03-17 18:26:18 +05:30
= form_for @project, html: { class: 'new_project' } do |f|
2017-09-10 17:25:29 +05:30
.project-template
.form-group
%div
2019-02-15 15:39:39 +05:30
= render 'project_templates', f: f, project: @project
2015-04-26 12:48:37 +05:30
2018-03-27 19:54:05 +05:30
.tab-pane.import-project-pane.js-toggle-container{ id: 'import-project-pane', class: active_when(active_tab == 'import'), role: 'tabpanel' }
2018-11-18 11:00:15 +05:30
- 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.
2014-09-02 18:07:02 +05:30
2018-11-08 19:23:39 +05:30
.save-project-loader.d-none
2014-09-02 18:07:02 +05:30
.center
%h2
2015-04-26 12:48:37 +05:30
%i.fa.fa-spinner.fa-spin
2014-09-02 18:07:02 +05:30
Creating project & repository.
%p Please wait a moment, this page will automatically refresh when ready.