summaryrefslogtreecommitdiff
path: root/app/views/import/github/new.html.haml
blob: 518c44cc687f19178591e5ff03466fb75a29664b (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
- title = _('Authenticate with GitHub')
- page_title title
- breadcrumb_title title
- header_title _("Projects"), root_path

%h2.page-title
  = title

%p
  = import_github_authorize_message

- if github_import_configured? && !has_ci_cd_only_params?
  = link_to icon('github', text: title), status_import_github_path, class: 'btn btn-success'

  %hr

- unless github_import_configured? || has_ci_cd_only_params?
  .bs-callout.bs-callout-info
    = import_configure_github_admin_message

= form_tag personal_access_token_import_github_path, method: :post do
  .form-group
    %label.label-bold= _('Personal Access Token')
    = text_field_tag :personal_access_token, '', class: 'form-control', placeholder: _('e.g. %{token}') % { token: '8d3f016698e...' }
    %span.form-text.text-muted
      = import_github_personal_access_token_message

  = render_if_exists 'import/github/ci_cd_only'

  .form-actions.d-flex.justify-content-end
    = link_to _('Cancel'), new_project_path, class: 'btn'
    = submit_tag _('Authenticate'), class: 'btn btn-success ml-2'