_runner.html.haml 1.91 KB
Newer Older
1
%tr{ id: dom_id(runner) }
2 3 4 5 6
  %td
    - if runner.shared?
      %span.label.label-success shared
    - else
      %span.label.label-info specific
7
    - if runner.locked?
8
      %span.label.label-warning locked
9 10 11 12
    - unless runner.active?
      %span.label.label-danger paused

  %td
13
    = link_to admin_runner_path(runner) do
14 15
      = runner.short_sha
  %td
16
    = runner.description
17 18
  %td
    = runner.version
19 20
  %td
    = runner.ip_address
21 22 23 24 25
  %td
    - if runner.defines_job_upper_timeout?
      = runner.job_upper_timeout
    - else
      n/a
26 27
  %td
    - if runner.shared?
28
      n/a
29 30 31 32 33
    - else
      = runner.projects.count(:all)
  %td
    #{runner.builds.count(:all)}
  %td
34
    - runner.tag_list.sort.each do |tag|
35 36 37 38 39 40 41
      %span.label.label-primary
        = tag
  %td
    - if runner.contacted_at
      #{time_ago_in_words(runner.contacted_at)} ago
    - else
      Never
42 43 44 45
  %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')
46 47
       
      - if runner.active?
48 49
        = 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')
50
      - else
51 52 53 54
        = 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')