2016-12-26 05:47:16 -05:00
|
|
|
%tr{ id: dom_id(runner) }
|
2015-08-25 21:42:46 -04:00
|
|
|
%td
|
|
|
|
- if runner.shared?
|
|
|
|
%span.label.label-success shared
|
|
|
|
- else
|
|
|
|
%span.label.label-info specific
|
2016-06-28 07:55:12 -04:00
|
|
|
- if runner.locked?
|
2016-06-30 09:26:50 -04:00
|
|
|
%span.label.label-warning locked
|
2015-08-25 21:42:46 -04:00
|
|
|
- unless runner.active?
|
|
|
|
%span.label.label-danger paused
|
|
|
|
|
|
|
|
%td
|
2015-12-04 06:55:23 -05:00
|
|
|
= link_to admin_runner_path(runner) do
|
2015-08-25 21:42:46 -04:00
|
|
|
= runner.short_sha
|
|
|
|
%td
|
2016-05-09 07:56:15 -04:00
|
|
|
= runner.description
|
2017-01-24 01:12:06 -05:00
|
|
|
%td
|
|
|
|
= runner.version
|
2015-08-25 21:42:46 -04:00
|
|
|
%td
|
|
|
|
- if runner.shared?
|
2016-05-10 07:07:14 -04:00
|
|
|
n/a
|
2015-08-25 21:42:46 -04:00
|
|
|
- else
|
|
|
|
= runner.projects.count(:all)
|
|
|
|
%td
|
|
|
|
#{runner.builds.count(:all)}
|
|
|
|
%td
|
2017-02-14 17:28:35 -05:00
|
|
|
- runner.tag_list.sort.each do |tag|
|
2015-08-25 21:42:46 -04:00
|
|
|
%span.label.label-primary
|
|
|
|
= tag
|
|
|
|
%td
|
|
|
|
- if runner.contacted_at
|
|
|
|
#{time_ago_in_words(runner.contacted_at)} ago
|
|
|
|
- else
|
|
|
|
Never
|
2017-06-29 17:06:56 -04:00
|
|
|
%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')
|
2015-08-25 21:42:46 -04:00
|
|
|
|
|
|
|
- if runner.active?
|
2017-06-29 17:06:56 -04:00
|
|
|
= 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')
|
2015-08-25 21:42:46 -04:00
|
|
|
- else
|
2017-06-29 17:06:56 -04:00
|
|
|
= 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')
|