summaryrefslogtreecommitdiff
path: root/app/views/import
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2015-08-07 01:02:01 -0700
committerStan Hu <stanhu@gmail.com>2015-08-07 07:07:08 -0700
commitd7accda1ae42fe2036060aaf3ef4447e8f352e35 (patch)
tree0079ec7347a2a68555bc625a53bfe66da44684f9 /app/views/import
parenta1e6fc157f70f1fe5e8d7b8cc9a34d1ff108b7d8 (diff)
downloadgitlab-ce-d7accda1ae42fe2036060aaf3ef4447e8f352e35.tar.gz
Show incompatible projects in Bitbucket import status
See #1871
Diffstat (limited to 'app/views/import')
-rw-r--r--app/views/import/bitbucket/status.html.haml33
1 files changed, 28 insertions, 5 deletions
diff --git a/app/views/import/bitbucket/status.html.haml b/app/views/import/bitbucket/status.html.haml
index 9d2858e4e72..98ae509096e 100644
--- a/app/views/import/bitbucket/status.html.haml
+++ b/app/views/import/bitbucket/status.html.haml
@@ -3,11 +3,16 @@
%i.fa.fa-bitbucket
Import projects from Bitbucket
-%p.light
- Select projects you want to import.
-%hr
-%p
- = button_tag 'Import all projects', class: "btn btn-success js-import-all"
+- if @repos.any?
+ %p.light
+ Select projects you want to import.
+ %hr
+ %p
+ - if @incompatible_repos.any?
+ = button_tag 'Import all compatible projects', class: "btn btn-success js-import-all"
+ - else
+ = button_tag 'Import all projects', class: "btn btn-success js-import-all"
+
%table.table.import-jobs
%thead
@@ -41,6 +46,24 @@
= "#{repo["owner"]}/#{repo["slug"]}"
%td.import-actions.job-status
= button_tag "Import", class: "btn js-add-to-import"
+ - @incompatible_repos.each do |repo|
+ %tr{id: "repo_#{repo["owner"]}___#{repo["slug"]}"}
+ %td
+ = link_to "#{repo["owner"]}/#{repo["slug"]}", "https://bitbucket.org/#{repo["owner"]}/#{repo["slug"]}", target: "_blank"
+ %td.import-target
+ %td.import-actions-job-status
+ = label_tag "Incompatible Project", nil, class: "label label-danger"
+
+- if @incompatible_repos.any?
+ %p
+ One or more of your Bitbucket projects cannot be imported into GitLab
+ directly because they use Subversion or Mercurial for version control,
+ rather than Git. Please convert
+ = link_to "them to Git,", "https://www.atlassian.com/git/tutorials/migrating-overview"
+ and go through the
+ = link_to "import flow", status_import_bitbucket_path
+ again.
+
:coffeescript
new ImporterStatus("#{jobs_import_bitbucket_path}", "#{import_bitbucket_path}")