_runner.html.haml 1.8 KB
Newer Older
1
%tr{ id: dom_id(runner) }
D
Douwe Maan 已提交
2 3 4 5 6
  %td
    - if runner.shared?
      %span.label.label-success shared
    - else
      %span.label.label-info specific
7
    - if runner.locked?
L
Lin Jen-Shin 已提交
8
      %span.label.label-warning locked
D
Douwe Maan 已提交
9 10 11 12
    - unless runner.active?
      %span.label.label-danger paused

  %td
K
Kamil Trzcinski 已提交
13
    = link_to admin_runner_path(runner) do
D
Douwe Maan 已提交
14 15
      = runner.short_sha
  %td
16
    = runner.description
17 18
  %td
    = runner.version
D
Douwe Maan 已提交
19 20
  %td
    - if runner.shared?
21
      n/a
D
Douwe Maan 已提交
22 23 24 25 26
    - else
      = runner.projects.count(:all)
  %td
    #{runner.builds.count(:all)}
  %td
27
    - runner.tag_list.sort.each do |tag|
D
Douwe Maan 已提交
28 29 30 31 32 33 34
      %span.label.label-primary
        = tag
  %td
    - if runner.contacted_at
      #{time_ago_in_words(runner.contacted_at)} ago
    - else
      Never
35 36 37 38
  %td.admin-runner-btn-group-cell
    .pull-right.btn-group
      = link_to admin_runner_path(runner), class: 'btn btn-sm btn-default has-tooltip', title: 'Edit', ref: 'tooltip', aria: { label: 'Edit' }, data: { placement: 'top', container: 'body'} do
        = icon('pencil')
D
Douwe Maan 已提交
39 40
       
      - if runner.active?
41 42
        = link_to [:pause, :admin, runner], method: :get, class: 'btn btn-sm btn-default has-tooltip', title: 'Pause', ref: 'tooltip', aria: { label: 'Pause' }, data: { placement: 'top', container: 'body', confirm: "Are you sure?" } do
          = icon('pause')
D
Douwe Maan 已提交
43
      - else
44 45 46 47
        = link_to [:resume, :admin, runner], method: :get, class: 'btn btn-default btn-sm has-tooltip', title: 'Resume', ref: 'tooltip', aria: { label: 'Resume' }, data: { placement: 'top', container: 'body'} do
          = icon('play')
      = link_to [:admin, runner], method: :delete, class: 'btn btn-danger btn-sm has-tooltip', title: 'Remove', ref: 'tooltip', aria: { label: 'Remove' }, data: { placement: 'top', container: 'body', confirm: "Are you sure?" } do
        = icon('remove')