new.html.haml 3.9 KB
Newer Older
1
- @hide_breadcrumbs = true
2
- @hide_top_links = true
3 4
- page_title    _('New Project')
- header_title  _("Projects"), dashboard_projects_path
5
- active_tab = local_assigns.fetch(:active_tab, 'blank')
6

7
.project-edit-container.prepend-top-default
8
  .project-edit-errors
9
    = render 'projects/errors'
10
  .row
11 12
    .col-lg-3.profile-settings-sidebar
      %h4.prepend-top-0
Eric Eastwood's avatar
Eric Eastwood committed
13
        = _('New project')
Annabel Dunstone Gray's avatar
Annabel Dunstone Gray committed
14
      %p
Eric Eastwood's avatar
Eric Eastwood committed
15 16
        - 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 }
Annabel Dunstone Gray's avatar
Annabel Dunstone Gray committed
17
      %p
Eric Eastwood's avatar
Eric Eastwood committed
18
        = _('All features are enabled for blank projects, from templates, or when importing, but you can disable them afterward in the project settings.')
19
      = render_if_exists 'projects/new_ci_cd_banner_external_repo'
Jason Lenny's avatar
Jason Lenny committed
20 21 22
      %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 }
23 24
      .md
        = brand_new_project_guidelines
25 26 27 28 29 30 31
      %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"

32
    .col-lg-9.js-toggle-container
Clement Ho's avatar
Clement Ho committed
33
      %ul.nav.nav-tabs.nav-links.gitlab-tabs{ role: 'tablist' }
34
        %li.nav-item{ role: 'presentation' }
35
          %a.nav-link.active{ href: '#blank-project-pane', id: 'blank-project-tab', data: { toggle: 'tab', track_label: 'blank_project', track_event: "click_tab", track_value: "" }, role: 'tab' }
36 37
            %span.d-none.d-sm-block= s_('ProjectsNew|Blank project')
            %span.d-block.d-sm-none= s_('ProjectsNew|Blank')
38
        %li.nav-item{ role: 'presentation' }
39
          %a.nav-link{ href: '#import-project-pane', id: 'import-project-tab', data: { toggle: 'tab', track_label: 'import_project', track_event: "click_tab", track_value: "" }, role: 'tab' }
40 41
            %span.d-none.d-sm-block= s_('ProjectsNew|Import project')
            %span.d-block.d-sm-none= s_('ProjectsNew|Import')
42
        = render_if_exists 'projects/new_ci_cd_only_project_tab', active_tab: active_tab
Annabel Dunstone Gray's avatar
Annabel Dunstone Gray committed
43 44

      .tab-content.gitlab-tab-content
45
        .tab-pane.js-toggle-container{ id: 'blank-project-pane', class: active_when(active_tab == 'blank'), role: 'tabpanel' }
Annabel Dunstone Gray's avatar
Annabel Dunstone Gray committed
46 47 48
          = form_for @project, html: { class: 'new_project' } do |f|
            = render 'new_project_fields', f: f, project_name_id: "blank-project-name"

Eric Eastwood's avatar
Eric Eastwood committed
49
        .tab-pane.import-project-pane.js-toggle-container{ id: 'import-project-pane', class: active_when(active_tab == 'import'), role: 'tabpanel' }
50 51 52 53
          - if import_sources_enabled?
            = render 'import_project_pane', active_tab: active_tab
          - else
            .nothing-here-block
54 55
              %h4= s_('ProjectsNew|No import options available')
              %p= s_('ProjectsNew|Contact an administrator to enable options for importing your project.')
56

57 58
        = render_if_exists 'projects/new_ci_cd_only_project_pane', active_tab: active_tab

Clement Ho's avatar
Clement Ho committed
59
.save-project-loader.d-none
60
  .center
61
    %h2
62
      %i.fa.fa-spinner.fa-spin
63 64 65
      = s_('ProjectsNew|Creating project & repository.')
    %p
      = s_('ProjectsNew|Please wait a moment, this page will automatically refresh when ready.')