Skip to content
代码片段 群组 项目
未验证 提交 b3d9db3b 编辑于 作者: Justin Ho Tuan Duong's avatar Justin Ho Tuan Duong 提交者: GitLab
浏览文件

Merge branch 'authenticate-with-github-migration' into 'master'

No related branches found
No related tags found
无相关合并请求
...@@ -3,27 +3,24 @@ ...@@ -3,27 +3,24 @@
- header_title _("New project"), new_project_path - header_title _("New project"), new_project_path
- add_to_breadcrumbs s_('ProjectsNew|Import project'), new_project_path(anchor: 'import_project') - add_to_breadcrumbs s_('ProjectsNew|Import project'), new_project_path(anchor: 'import_project')
.gl-border-solid.gl-border-default.gl-border-0.gl-border-b-1 = render ::Layouts::PageHeadingComponent.new('') do |c|
%h1.gl-text-size-h1.gl-my-0.gl-py-4.gl-flex.gl-items-center.gl-gap-3 - c.with_heading do
= sprite_icon('github', size: 24) .gl-flex.gl-gap-3.gl-items-center
%span= title = sprite_icon('github', size: 32)
= title
%p.gl-mt-5.gl-mb-0 - c.with_description do
= import_github_authorize_message = import_github_authorize_message
- if !has_ci_cd_only_params?
- if !has_ci_cd_only_params? .gl-mt-5
.gl-mt-5 - if github_import_configured?
- if github_import_configured? = render Pajamas::ButtonComponent.new(variant: :confirm,
= render Pajamas::ButtonComponent.new(variant: :confirm, href: status_import_github_path(namespace_id: params[:namespace_id]),
href: status_import_github_path(namespace_id: params[:namespace_id]), icon: 'github') do
icon: 'github') do = title
= title - else
- else = render Pajamas::AlertComponent.new(variant: :info, dismissible: false) do |c|
= render Pajamas::AlertComponent.new(variant: :info, dismissible: false) do |c| - c.with_body do
- c.with_body do = import_configure_github_admin_message
= import_configure_github_admin_message
%hr
= form_tag personal_access_token_import_github_path, method: :post, class: 'gl-mt-3' do = form_tag personal_access_token_import_github_path, method: :post, class: 'gl-mt-3' do
.form-group.gl-form-group .form-group.gl-form-group
...@@ -48,8 +45,8 @@ ...@@ -48,8 +45,8 @@
- docs_link_tag_pair = tag_pair(docs_link, :link_start, :link_end) - docs_link_tag_pair = tag_pair(docs_link, :link_start, :link_end)
= safe_format(s_('GithubImport|%{link_start}Learn more%{link_end}.'), docs_link_tag_pair) = safe_format(s_('GithubImport|%{link_start}Learn more%{link_end}.'), docs_link_tag_pair)
.form-actions.gl-flex.gl-justify-end .gl-mt-5.gl-flex.gl-gap-3
= render Pajamas::ButtonComponent.new(variant: :confirm, type: :submit, button_options: { class: 'js-import-github-pat-authenticate', data: { testid: 'authenticate-button' } }) do
= _('Authenticate')
= render Pajamas::ButtonComponent.new(href: new_project_path) do = render Pajamas::ButtonComponent.new(href: new_project_path) do
= _('Cancel') = _('Cancel')
= render Pajamas::ButtonComponent.new(variant: :confirm, type: :submit, button_options: { class: 'gl-ml-3 js-import-github-pat-authenticate', data: { testid: 'authenticate-button' } }) do
= _('Authenticate')
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册