2020-07-28 23:09:34 +05:30
|
|
|
- page_title _("Manifest import")
|
|
|
|
- header_title _("Projects"), root_path
|
2018-11-18 11:00:15 +05:30
|
|
|
- provider = 'manifest'
|
|
|
|
|
|
|
|
%h3.page-title
|
|
|
|
= _('Manifest file import')
|
|
|
|
|
|
|
|
%p
|
|
|
|
= button_tag class: "btn btn-import btn-success js-import-all" do
|
2019-05-18 00:54:41 +05:30
|
|
|
= _('Import all repositories')
|
2018-11-18 11:00:15 +05:30
|
|
|
= 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|
|
|
|
|
%tr{ id: "project_#{project.id}", class: project_status_css_class(project.import_status) }
|
|
|
|
%td
|
|
|
|
= project.import_url
|
|
|
|
%td
|
|
|
|
= link_to_project project
|
|
|
|
%td.job-status
|
|
|
|
= render 'import/project_status', project: project
|
|
|
|
|
|
|
|
- @pending_repositories.each do |repository|
|
|
|
|
%tr{ id: "repo_#{repository[:id]}" }
|
|
|
|
%td
|
|
|
|
= repository[:url]
|
|
|
|
%td.import-target
|
|
|
|
= import_project_target(@group.full_path, repository[:path])
|
|
|
|
%td.import-actions.job-status
|
|
|
|
= button_tag class: "btn btn-import js-add-to-import" do
|
|
|
|
= _('Import')
|
|
|
|
= icon("spinner spin", class: "loading-icon")
|
|
|
|
|
|
|
|
.js-importer-status{ data: { jobs_import_path: url_for([:jobs, :import, provider]),
|
|
|
|
import_path: url_for([:import, provider]) } }
|