status.html.haml 1.07 KB
Newer Older
Valery Sizov's avatar
Valery Sizov committed
1
%h3.page-title
2
  %i.fa.fa-github
3
  Import repositories from GitLab.com
Valery Sizov's avatar
Valery Sizov committed
4

5
%p.light
6
  Select projects you want to import.  
7 8 9

%hr
%table.table.import-jobs
Valery Sizov's avatar
Valery Sizov committed
10 11
  %thead
    %tr
12 13
      %th From GitLab.com
      %th To GitLab private instance
Valery Sizov's avatar
Valery Sizov committed
14 15
      %th Status
  %tbody
16
    - @already_added_projects.each do |project|
17
      %tr{id: "project_#{project.id}", class: "#{project_status_css_class(project.import_status)}"}
18 19
        %td= project.import_source
        %td
20
          %strong= link_to project.path_with_namespace, project
21
        %td.job-status
22 23 24 25 26 27 28
          - if project.import_status == 'finished'
            %span.cgreen
              %i.fa.fa-check
              done
          - else
            = project.human_import_status_name

Valery Sizov's avatar
Valery Sizov committed
29
    - @repos.each do |repo|
30 31
      %tr{id: "repo_#{repo["id"]}"}
        %td= repo["path_with_namespace"]
32
        %td.import-target
33
          = repo["path_with_namespace"]
34
        %td.import-actions.job-status
Valery Sizov's avatar
Valery Sizov committed
35
          = button_tag "Add", class: "btn btn-add-to-import"
36

Valery Sizov's avatar
Valery Sizov committed
37
:coffeescript
38 39
  $ -> 
    new ImporterStatus("#{jobs_import_gitlab_path}", "#{import_gitlab_url}")