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

29 lines
917 B
Text
Raw Normal View History

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
2016-08-24 12:49:21 +05:30
- header_title "Projects", root_path
%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