Welcome to mirror list, hosted at ThFree Co, Russian Federation.

new.html.haml « github « import « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5893687605c518940f28ea76c6f2dabd989baca0 (plain)
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
- title = _('Authenticate with GitHub')
- page_title title
- header_title _("New project"), new_project_path
- add_to_breadcrumbs s_('ProjectsNew|Import project'), new_project_path(anchor: 'import_project')

.gl-border-solid.gl-border-gray-100.gl-border-0.gl-border-b-1
  %h1.gl-font-size-h1.gl-my-0.gl-py-4.gl-display-flex.gl-align-items-center.gl-gap-3
    = sprite_icon('github', size: 24)
    %span= title

%p.gl-mt-5
  = import_github_authorize_message

- if github_import_configured? && !has_ci_cd_only_params?
  = render Pajamas::ButtonComponent.new(variant: :confirm,
    href: status_import_github_path(namespace_id: params[:namespace_id]),
    icon: 'github') do
    = title

  %hr

- unless github_import_configured? || has_ci_cd_only_params?
  = render Pajamas::AlertComponent.new(variant: :info, dismissible: false) do |c|
    - c.with_body do
      = import_configure_github_admin_message

= form_tag personal_access_token_import_github_path, method: :post do
  .form-group
    %label.col-form-label{ for: 'personal_access_token' }= _('Personal Access Token')
    = hidden_field_tag(:namespace_id, params[:namespace_id])
    = password_field_tag :personal_access_token, '', class: 'form-control gl-form-input', placeholder: _('e.g. %{token}') % { token: '8d3f016698e...' }, data: { testid: 'personal-access-token-field' }
    %span.form-text.gl-text-gray-600
      = import_github_personal_access_token_message

  = render_if_exists 'import/github/ci_cd_only'

  .form-actions.gl-display-flex.gl-justify-content-end
    = render Pajamas::ButtonComponent.new(href: new_project_path) do
      = _('Cancel')
    = render Pajamas::ButtonComponent.new(variant: :confirm, type: :submit, button_options: { class: 'gl-ml-3', data: { testid: 'authenticate-button' } }) do
      = _('Authenticate')