File: empty.html.haml

package info (click to toggle)
gitlab 17.6.5-19
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 629,368 kB
  • sloc: ruby: 1,915,304; javascript: 557,307; sql: 60,639; xml: 6,509; sh: 4,567; makefile: 1,239; python: 406
file content (71 lines) | stat: -rw-r--r-- 3,935 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
- add_page_specific_style 'page_bundles/projects'
- add_page_specific_style 'page_bundles/project'

- @skip_current_level_breadcrumb = true

= render partial: 'flash_messages', locals: { project: @project }
= render 'clusters_deprecation_alert'

= render "home_panel"

.project-page-indicator.js-show-on-project-root

#js-project-show-empty-page.project-page-layout
  .project-page-layout-content.gl-mt-5
    .project-buttons.gl-mb-5{ data: { testid: 'quick-actions-container' } }
      .project-clone-holder.gl-block.sm:gl-hidden
        = render "shared/mobile_clone_panel"

      .project-clone-holder.gl-hidden.sm:gl-flex.gl-justify-end.gl-w-full.gl-gap-3
        = render 'shared/web_ide_button', blob: nil
        = render "projects/buttons/code", ref: @ref

    = render Pajamas::CardComponent.new(card_options: { class: 'gl-mb-5' }, body_options: { class: 'gl-bg-gray-10 gl-p-5 gl-rounded-base' }) do |c|
      - c.with_body do
        %h2.gl-text-lg.gl-my-0= _('The repository for this project is empty')
        - if @project.can_current_user_push_code?
          %p.gl-m-0.gl-mt-2.gl-text-secondary= _('To get started, clone the repository or upload some files.')

    - if can?(current_user, :push_code, @project)
      = render Pajamas::CardComponent.new(header_options: { class: 'gl-py-4' }) do |c|
        - c.with_header do
          %h2.gl-text-lg.gl-m-0= _('Command line instructions')
        - c.with_body do
          %p
            = _('You can also upload existing files from your computer using the instructions below.')
          .git-empty.js-git-empty
            %h3.gl-text-lg= _('Configure your Git identity')
            - git_get_started_doc = link_to('', help_page_path('topics/git/get_started.md'), target: '_blank', rel: 'noopener noreferrer')
            - git_config_doc = link_to('', help_page_path('topics/git/how_to_install_git/index.md', anchor: 'configure-git'), target: '_blank', rel: 'noopener noreferrer')
            %p= safe_format(_("%{get_started}Get started with Git%{get_started_end} and learn %{git_config}how to configure it%{git_config_end}."), tag_pair(git_get_started_doc, :get_started, :get_started_end), tag_pair(git_config_doc, :git_config, :git_config_end))
            .scrolling-tabs-container.inner-page-scroll-tabs
            = gl_tabs_nav({ class: 'js-configure-git-tabs' }) do
              = gl_tab_link_to '#', item_active: true, 'aria-controls': 'local' do
                = _('Local')
              = gl_tab_link_to '#', 'aria-controls': 'global' do
                = _('Global')
            .tab-content
              .tab-pane.active#local
                = render partial: 'empty_git_config', locals: { scope: 'local' }
              .tab-pane#global
                = render partial: 'empty_git_config', locals: { scope: 'global' }
            %h3.gl-text-lg= _('Add files')
            - if ssh_enabled?
              %p= _("Push files to this repository using SSH or HTTPS. If you're unsure, we recommend SSH.")
              .scrolling-tabs-container.inner-page-scroll-tabs
              = gl_tabs_nav({ class: 'js-empty-project-tabs' }) do
                = gl_tab_link_to '#', item_active: true, 'aria-controls': 'ssh' do
                  = _('SSH')
                = gl_tab_link_to '#', 'aria-controls': 'https' do
                  = _('HTTPS')
                = render_if_exists 'projects/empty_kerberos_tab_link'
              .tab-content
                .tab-pane.active#ssh
                  = render partial: 'empty_git_instructions', locals: { protocol: 'ssh' }
                .tab-pane#https
                  = render partial: 'empty_git_instructions', locals: { protocol: 'https' }
                = render_if_exists 'projects/empty_kerberos_pane'
            - else
              = render partial: 'empty_git_instructions', locals: { protocol: 'https' }
  .project-page-layout-sidebar.js-show-on-project-root.gl-mt-5
    = render "sidebar"