2018-07-02 05:16:24 -04:00
|
|
|
- page_title "Manifest import"
|
|
|
|
- header_title "Projects", root_path
|
|
|
|
- provider = 'manifest'
|
|
|
|
|
|
|
|
%h3.page-title
|
2018-07-05 08:24:53 -04:00
|
|
|
= _('Manifest file import')
|
|
|
|
|
2018-07-02 05:16:24 -04:00
|
|
|
%p
|
|
|
|
= button_tag class: "btn btn-import btn-success js-import-all" do
|
|
|
|
= import_all_githubish_repositories_button_label
|
|
|
|
= icon("spinner spin", class: "loading-icon")
|
|
|
|
|
|
|
|
.table-responsive
|
|
|
|
%table.table.import-jobs
|
|
|
|
%thead
|
|
|
|
%tr
|
|
|
|
%th= _('Repository URL')
|
|
|
|
%th= _('To GitLab')
|
|
|
|
%th= _('Status')
|
|
|
|
%tbody
|
|
|
|
- @already_added_projects.each do |project|
|
2018-07-09 07:59:07 -04:00
|
|
|
%tr{ id: "project_#{project.id}", class: project_status_css_class(project.import_status) }
|
2018-07-02 05:16:24 -04:00
|
|
|
%td
|
|
|
|
= project.import_url
|
2018-07-05 08:24:53 -04:00
|
|
|
%td
|
|
|
|
= link_to_project project
|
2018-07-02 05:16:24 -04:00
|
|
|
%td.job-status
|
2018-07-09 07:59:07 -04:00
|
|
|
= render 'import/project_status', project: project
|
2018-07-02 05:16:24 -04:00
|
|
|
|
2018-07-05 08:24:53 -04:00
|
|
|
- @pending_repositories.each do |repository|
|
|
|
|
%tr{ id: "repo_#{repository[:id]}" }
|
2018-07-02 05:16:24 -04:00
|
|
|
%td
|
2018-07-05 08:24:53 -04:00
|
|
|
= repository[:url]
|
2018-07-02 05:16:24 -04:00
|
|
|
%td.import-target
|
2018-07-05 08:24:53 -04:00
|
|
|
= import_project_target(@group.full_path, repository[:path])
|
2018-07-02 05:16:24 -04:00
|
|
|
%td.import-actions.job-status
|
|
|
|
= button_tag class: "btn btn-import js-add-to-import" do
|
2018-07-05 08:24:53 -04:00
|
|
|
= _('Import')
|
2018-07-02 05:16:24 -04:00
|
|
|
= icon("spinner spin", class: "loading-icon")
|
|
|
|
|
2018-07-09 07:59:07 -04:00
|
|
|
.js-importer-status{ data: { jobs_import_path: url_for([:jobs, :import, provider]),
|
|
|
|
import_path: url_for([:import, provider]) } }
|