2018-03-27 19:54:05 +05:30
|
|
|
- title = has_ci_cd_only_params? ? _('Connect repositories from GitHub') : _('GitHub import')
|
|
|
|
- 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
|
|
|
|
|
|
|
%h3.page-title
|
2018-03-27 19:54:05 +05:30
|
|
|
= icon 'github', text: import_github_title
|
2016-08-24 12:49:21 +05:30
|
|
|
|
|
|
|
- if github_import_configured?
|
|
|
|
%p
|
2018-03-27 19:54:05 +05:30
|
|
|
= import_github_authorize_message
|
2016-08-24 12:49:21 +05:30
|
|
|
|
2018-03-27 19:54:05 +05:30
|
|
|
= link_to _('List your GitHub repositories'), status_import_github_path(ci_cd_only: params[:ci_cd_only]), class: 'btn btn-success'
|
2016-08-24 12:49:21 +05:30
|
|
|
|
|
|
|
%hr
|
|
|
|
|
|
|
|
%p
|
2018-03-27 19:54:05 +05:30
|
|
|
= import_github_personal_access_token_message
|
2016-08-24 12:49:21 +05:30
|
|
|
|
|
|
|
= form_tag personal_access_token_import_github_path, method: :post, class: 'form-inline' do
|
|
|
|
.form-group
|
2018-11-08 19:23:39 +05:30
|
|
|
= text_field_tag :personal_access_token, '', class: 'form-control append-right-8', placeholder: _('Personal Access Token'), size: 40
|
2018-03-27 19:54:05 +05:30
|
|
|
= submit_tag _('List your GitHub repositories'), class: 'btn btn-success'
|
|
|
|
|
2016-08-24 12:49:21 +05:30
|
|
|
- unless github_import_configured?
|
|
|
|
%hr
|
|
|
|
%p
|
2018-03-27 19:54:05 +05:30
|
|
|
= import_configure_github_admin_message
|