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

35 lines
1.3 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
2021-09-04 01:27:46 +05:30
- header_title _("New project"), new_project_path
2021-11-18 22:05:49 +05:30
- add_to_breadcrumbs s_('ProjectsNew|Import project'), new_project_path(anchor: 'import_project')
2016-08-24 12:49:21 +05:30
2021-09-04 01:27:46 +05:30
%h3.page-title
2019-12-04 20:38:33 +05:30
= 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?
2021-04-17 20:07:23 +05:30
= link_to status_import_github_path, class: 'gl-button btn btn-confirm' do
2021-01-03 14:25:43 +05:30
= sprite_icon('github', css_class: 'gl-mr-2')
= title
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')
2021-12-11 22:18:48 +05:30
= text_field_tag :personal_access_token, '', class: 'form-control gl-form-input', 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
2021-04-17 20:07:23 +05:30
= link_to _('Cancel'), new_project_path, class: 'gl-button btn btn-default'
= submit_tag _('Authenticate'), class: 'gl-button btn btn-confirm ml-2', data: { qa_selector: 'authenticate_button' }