diff options
author | Marcin Kulik <m@ku1ik.com> | 2015-02-20 17:38:41 +0000 |
---|---|---|
committer | Marcin Kulik <m@ku1ik.com> | 2015-02-20 17:42:58 +0000 |
commit | 157b4b4b1f41267375d3b32c9c1606a538eb8488 (patch) | |
tree | 4f3fb0ee33696337118fb3516b0b01333dec1ef1 /app/views/import | |
parent | 1f617c3c5ffd3b8b4d1eb29d9cda8a2e7a749133 (diff) | |
download | gitlab-ce-157b4b4b1f41267375d3b32c9c1606a538eb8488.tar.gz |
Add gitorious.org importer
Diffstat (limited to 'app/views/import')
-rw-r--r-- | app/views/import/gitorious/status.html.haml | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/app/views/import/gitorious/status.html.haml b/app/views/import/gitorious/status.html.haml new file mode 100644 index 00000000000..35ed0a717de --- /dev/null +++ b/app/views/import/gitorious/status.html.haml @@ -0,0 +1,41 @@ +%h3.page-title + %i.fa.fa-gitorious + Import repositories from Gitorious.org + +%p.light + Select projects you want to import. +%hr +%p + = button_tag 'Import all projects', class: "btn btn-success js-import-all" + +%table.table.import-jobs + %thead + %tr + %th From Gitorious + %th To GitLab + %th Status + %tbody + - @already_added_projects.each do |project| + %tr{id: "project_#{project.id}", class: "#{project_status_css_class(project.import_status)}"} + %td= project.import_source + %td + %strong= link_to project.path_with_namespace, project + %td.job-status + - if project.import_status == 'finished' + %span.cgreen + %i.fa.fa-check + done + - else + = project.human_import_status_name + + - @repos.each do |repo| + %tr{id: "repo_#{repo.id}"} + %td= repo.full_name + %td.import-target + = repo.full_name + %td.import-actions.job-status + = button_tag "Import", class: "btn js-add-to-import" + +:coffeescript + $ -> + new ImporterStatus("#{jobs_import_gitorious_path}", "#{import_gitorious_path}") |