2016-12-26 10:47:16 +00:00
|
|
|
%tr{ id: dom_id(runner) }
|
2015-08-26 01:42:46 +00:00
|
|
|
%td
|
|
|
|
- if runner.shared?
|
2018-04-13 19:36:22 +00:00
|
|
|
%span.badge.badge-success shared
|
2018-05-01 09:11:57 +00:00
|
|
|
- elsif runner.group_type?
|
2018-05-08 15:49:30 +00:00
|
|
|
%span.badge.badge-success group
|
2015-08-26 01:42:46 +00:00
|
|
|
- else
|
2018-04-13 19:37:55 +00:00
|
|
|
%span.badge.badge-info specific
|
2016-06-28 11:55:12 +00:00
|
|
|
- if runner.locked?
|
2018-04-13 19:34:22 +00:00
|
|
|
%span.badge.badge-warning locked
|
2015-08-26 01:42:46 +00:00
|
|
|
- unless runner.active?
|
2018-04-13 19:37:07 +00:00
|
|
|
%span.badge.badge-danger paused
|
2015-08-26 01:42:46 +00:00
|
|
|
|
|
|
|
%td
|
2015-12-04 11:55:23 +00:00
|
|
|
= link_to admin_runner_path(runner) do
|
2015-08-26 01:42:46 +00:00
|
|
|
= runner.short_sha
|
|
|
|
%td
|
2016-05-09 11:56:15 +00:00
|
|
|
= runner.description
|
2017-01-24 06:12:06 +00:00
|
|
|
%td
|
|
|
|
= runner.version
|
2018-02-26 03:34:50 +00:00
|
|
|
%td
|
|
|
|
= runner.ip_address
|
2015-08-26 01:42:46 +00:00
|
|
|
%td
|
2018-05-01 09:11:57 +00:00
|
|
|
- if runner.shared? || runner.group_type?
|
2016-05-10 11:07:14 +00:00
|
|
|
n/a
|
2015-08-26 01:42:46 +00:00
|
|
|
- else
|
|
|
|
= runner.projects.count(:all)
|
|
|
|
%td
|
|
|
|
#{runner.builds.count(:all)}
|
|
|
|
%td
|
2017-02-14 22:28:35 +00:00
|
|
|
- runner.tag_list.sort.each do |tag|
|
2018-04-13 19:35:23 +00:00
|
|
|
%span.badge.badge-primary
|
2015-08-26 01:42:46 +00:00
|
|
|
= tag
|
|
|
|
%td
|
|
|
|
- if runner.contacted_at
|
|
|
|
#{time_ago_in_words(runner.contacted_at)} ago
|
|
|
|
- else
|
|
|
|
Never
|
2017-06-29 21:06:56 +00:00
|
|
|
%td.admin-runner-btn-group-cell
|
2018-04-09 17:42:45 +00:00
|
|
|
.float-right.btn-group
|
2018-04-09 16:49:18 +00:00
|
|
|
= link_to admin_runner_path(runner), class: 'btn btn-sm btn-secondary has-tooltip', title: 'Edit', ref: 'tooltip', aria: { label: 'Edit' }, data: { placement: 'top', container: 'body'} do
|
2017-06-29 21:06:56 +00:00
|
|
|
= icon('pencil')
|
2015-08-26 01:42:46 +00:00
|
|
|
|
|
|
|
- if runner.active?
|
2018-04-09 16:49:18 +00:00
|
|
|
= link_to [:pause, :admin, runner], method: :get, class: 'btn btn-sm btn-secondary has-tooltip', title: 'Pause', ref: 'tooltip', aria: { label: 'Pause' }, data: { placement: 'top', container: 'body', confirm: "Are you sure?" } do
|
2017-06-29 21:06:56 +00:00
|
|
|
= icon('pause')
|
2015-08-26 01:42:46 +00:00
|
|
|
- else
|
2018-04-09 16:49:18 +00:00
|
|
|
= link_to [:resume, :admin, runner], method: :get, class: 'btn btn-secondary btn-sm has-tooltip', title: 'Resume', ref: 'tooltip', aria: { label: 'Resume' }, data: { placement: 'top', container: 'body'} do
|
2017-06-29 21:06:56 +00:00
|
|
|
= 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')
|