debian-mirror-gitlab/app/views/import/github/new.html.haml

33 lines
1.1 KiB
Text
Raw Normal View History

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