2019-08-22 19:20:19 -04:00
|
|
|
- title = _('Authenticate with GitHub')
|
2018-03-07 10:58:50 -05:00
|
|
|
- page_title title
|
|
|
|
- breadcrumb_title title
|
2018-06-13 01:02:41 -04:00
|
|
|
- header_title _("Projects"), root_path
|
2016-05-02 11:22:38 -04:00
|
|
|
|
2019-08-22 19:20:19 -04:00
|
|
|
%h2.page-title
|
|
|
|
= title
|
2016-05-02 11:22:38 -04:00
|
|
|
|
2019-08-22 19:20:19 -04:00
|
|
|
%p
|
|
|
|
= import_github_authorize_message
|
2016-06-27 07:42:22 -04:00
|
|
|
|
2019-08-22 19:20:19 -04:00
|
|
|
- if github_import_configured? && !has_ci_cd_only_params?
|
|
|
|
= link_to icon('github', text: title), status_import_github_path, class: 'btn btn-success'
|
2016-06-27 07:42:22 -04:00
|
|
|
|
|
|
|
%hr
|
|
|
|
|
2019-08-22 19:20:19 -04:00
|
|
|
- unless github_import_configured? || has_ci_cd_only_params?
|
|
|
|
.bs-callout.bs-callout-info
|
|
|
|
= import_configure_github_admin_message
|
2016-05-02 11:22:38 -04:00
|
|
|
|
2019-08-22 19:20:19 -04:00
|
|
|
= form_tag personal_access_token_import_github_path, method: :post do
|
2016-05-02 11:22:38 -04:00
|
|
|
.form-group
|
2019-08-22 19:20:19 -04:00
|
|
|
%label.label-bold= _('Personal Access Token')
|
2020-01-02 22:07:49 -05:00
|
|
|
= text_field_tag :personal_access_token, '', class: 'form-control', placeholder: _('e.g. %{token}') % { token: '8d3f016698e...' }, data: { qa_selector: 'personal_access_token_field' }
|
2019-08-22 19:20:19 -04:00
|
|
|
%span.form-text.text-muted
|
|
|
|
= import_github_personal_access_token_message
|
2018-03-07 10:58:50 -05:00
|
|
|
|
2019-05-20 22:17:10 -04:00
|
|
|
= render_if_exists 'import/github/ci_cd_only'
|
|
|
|
|
2019-08-22 19:20:19 -04:00
|
|
|
.form-actions.d-flex.justify-content-end
|
|
|
|
= link_to _('Cancel'), new_project_path, class: 'btn'
|
2020-01-02 22:07:49 -05:00
|
|
|
= submit_tag _('Authenticate'), class: 'btn btn-success ml-2', data: { qa_selector: 'authenticate_button' }
|