2018-10-15 14:42:47 +05:30
|
|
|
- active_tab = local_assigns.fetch(:active_tab, 'blank')
|
|
|
|
|
2018-11-08 19:23:39 +05:30
|
|
|
.project-import
|
|
|
|
.form-group.import-btn-container.clearfix
|
2018-11-18 11:00:15 +05:30
|
|
|
%h5
|
2018-11-08 19:23:39 +05:30
|
|
|
Import project from
|
|
|
|
.import-buttons
|
|
|
|
- if gitlab_project_import_enabled?
|
|
|
|
.import_gitlab_project.has-tooltip{ data: { container: 'body' } }
|
|
|
|
= link_to new_import_gitlab_project_path, class: 'btn btn_import_gitlab_project project-submit' do
|
|
|
|
= icon('gitlab', text: 'GitLab export')
|
2018-11-18 11:00:15 +05:30
|
|
|
|
|
|
|
- if github_import_enabled?
|
|
|
|
%div
|
2018-11-08 19:23:39 +05:30
|
|
|
= link_to new_import_github_path, class: 'btn js-import-github' do
|
|
|
|
= icon('github', text: 'GitHub')
|
2018-11-18 11:00:15 +05:30
|
|
|
|
|
|
|
- if bitbucket_import_enabled?
|
|
|
|
%div
|
2018-11-08 19:23:39 +05:30
|
|
|
= link_to status_import_bitbucket_path, class: "btn import_bitbucket #{'how_to_import_link' unless bitbucket_import_configured?}" do
|
2018-11-18 11:00:15 +05:30
|
|
|
= icon('bitbucket', text: 'Bitbucket Cloud')
|
2018-11-08 19:23:39 +05:30
|
|
|
- unless bitbucket_import_configured?
|
|
|
|
= render 'bitbucket_import_modal'
|
2018-11-18 11:00:15 +05:30
|
|
|
- if bitbucket_server_import_enabled?
|
|
|
|
%div
|
|
|
|
= link_to status_import_bitbucket_server_path, class: "btn import_bitbucket" do
|
|
|
|
= icon('bitbucket-square', text: 'Bitbucket Server')
|
|
|
|
%div
|
|
|
|
- if gitlab_import_enabled?
|
|
|
|
%div
|
2018-11-08 19:23:39 +05:30
|
|
|
= link_to status_import_gitlab_path, class: "btn import_gitlab #{'how_to_import_link' unless gitlab_import_configured?}" do
|
|
|
|
= icon('gitlab', text: 'GitLab.com')
|
|
|
|
- unless gitlab_import_configured?
|
|
|
|
= render 'gitlab_import_modal'
|
2018-11-18 11:00:15 +05:30
|
|
|
|
|
|
|
- if google_code_import_enabled?
|
|
|
|
%div
|
2018-11-08 19:23:39 +05:30
|
|
|
= link_to new_import_google_code_path, class: 'btn import_google_code' do
|
|
|
|
= icon('google', text: 'Google Code')
|
2018-11-18 11:00:15 +05:30
|
|
|
|
|
|
|
- if fogbugz_import_enabled?
|
|
|
|
%div
|
2018-11-08 19:23:39 +05:30
|
|
|
= link_to new_import_fogbugz_path, class: 'btn import_fogbugz' do
|
|
|
|
= icon('bug', text: 'Fogbugz')
|
2018-11-18 11:00:15 +05:30
|
|
|
|
|
|
|
- if gitea_import_enabled?
|
|
|
|
%div
|
2018-11-08 19:23:39 +05:30
|
|
|
= link_to new_import_gitea_path, class: 'btn import_gitea' do
|
|
|
|
= custom_icon('go_logo')
|
|
|
|
Gitea
|
2018-11-18 11:00:15 +05:30
|
|
|
|
|
|
|
- if git_import_enabled?
|
|
|
|
%div
|
2018-11-08 19:23:39 +05:30
|
|
|
%button.btn.js-toggle-button.js-import-git-toggle-button{ type: "button", data: { toggle_open_class: 'active' } }
|
|
|
|
= icon('git', text: 'Repo by URL')
|
2018-11-18 11:00:15 +05:30
|
|
|
|
|
|
|
- if manifest_import_enabled?
|
|
|
|
%div
|
|
|
|
= link_to new_import_manifest_path, class: 'btn import_manifest' do
|
|
|
|
= icon('file-text-o', text: 'Manifest file')
|
|
|
|
|
2018-11-08 19:23:39 +05:30
|
|
|
.js-toggle-content.toggle-import-form{ class: ('hide' if active_tab != 'import') }
|
2018-11-18 11:00:15 +05:30
|
|
|
= form_for @project, html: { class: 'new_project' } do |f|
|
|
|
|
%hr
|
2018-11-08 19:23:39 +05:30
|
|
|
= render "shared/import_form", f: f
|
|
|
|
= render 'new_project_fields', f: f, project_name_id: "import-url-name"
|