2018-03-07 10:58:50 -05:00
|
|
|
- title = has_ci_cd_only_params? ? _('Connect repositories from GitHub') : _('GitHub import')
|
|
|
|
- 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
|
|
|
|
|
|
|
%h3.page-title
|
2018-11-07 11:44:21 -05:00
|
|
|
= icon 'github', text: _('Import repositories from GitHub')
|
2016-05-02 11:22:38 -04:00
|
|
|
|
2016-06-27 07:42:22 -04:00
|
|
|
- if github_import_configured?
|
|
|
|
%p
|
2018-03-07 10:58:50 -05:00
|
|
|
= import_github_authorize_message
|
2016-06-27 07:42:22 -04:00
|
|
|
|
2018-03-09 00:37:57 -05:00
|
|
|
= link_to _('List your GitHub repositories'), status_import_github_path(ci_cd_only: params[:ci_cd_only]), class: 'btn btn-success'
|
2016-06-27 07:42:22 -04:00
|
|
|
|
|
|
|
%hr
|
|
|
|
|
|
|
|
%p
|
2018-03-07 10:58:50 -05:00
|
|
|
= import_github_personal_access_token_message
|
2016-05-02 11:22:38 -04:00
|
|
|
|
|
|
|
= form_tag personal_access_token_import_github_path, method: :post, class: 'form-inline' do
|
|
|
|
.form-group
|
2018-06-04 17:49:14 -04:00
|
|
|
= text_field_tag :personal_access_token, '', class: 'form-control append-right-8', placeholder: _('Personal Access Token'), size: 40
|
2018-03-07 10:58:50 -05:00
|
|
|
= submit_tag _('List your GitHub repositories'), class: 'btn btn-success'
|
|
|
|
|
2019-05-20 22:17:10 -04:00
|
|
|
= render_if_exists 'import/github/ci_cd_only'
|
|
|
|
|
2016-06-27 07:42:22 -04:00
|
|
|
- unless github_import_configured?
|
2016-05-02 11:22:38 -04:00
|
|
|
%hr
|
2016-06-27 07:42:22 -04:00
|
|
|
%p
|
2018-03-07 10:58:50 -05:00
|
|
|
= import_configure_github_admin_message
|