2015-09-25 12:07:36 +05:30
|
|
|
%tr{id: dom_id(runner)}
|
|
|
|
%td
|
|
|
|
- if runner.shared?
|
|
|
|
%span.label.label-success shared
|
|
|
|
- else
|
|
|
|
%span.label.label-info specific
|
|
|
|
- unless runner.active?
|
|
|
|
%span.label.label-danger paused
|
|
|
|
|
|
|
|
%td
|
2015-12-23 02:04:40 +05:30
|
|
|
= link_to admin_runner_path(runner) do
|
2015-09-25 12:07:36 +05:30
|
|
|
= runner.short_sha
|
|
|
|
%td
|
2016-06-02 11:05:42 +05:30
|
|
|
= runner.description
|
2015-09-25 12:07:36 +05:30
|
|
|
%td
|
|
|
|
- if runner.shared?
|
2016-06-02 11:05:42 +05:30
|
|
|
n/a
|
2015-09-25 12:07:36 +05:30
|
|
|
- else
|
|
|
|
= runner.projects.count(:all)
|
|
|
|
%td
|
|
|
|
#{runner.builds.count(:all)}
|
|
|
|
%td
|
|
|
|
- runner.tag_list.each do |tag|
|
|
|
|
%span.label.label-primary
|
|
|
|
= tag
|
|
|
|
%td
|
|
|
|
- if runner.contacted_at
|
|
|
|
#{time_ago_in_words(runner.contacted_at)} ago
|
|
|
|
- else
|
|
|
|
Never
|
|
|
|
%td
|
|
|
|
.pull-right
|
2015-12-23 02:04:40 +05:30
|
|
|
= link_to 'Edit', admin_runner_path(runner), class: 'btn btn-sm'
|
2015-09-25 12:07:36 +05:30
|
|
|
|
|
|
|
- if runner.active?
|
2015-12-23 02:04:40 +05:30
|
|
|
= link_to 'Pause', [:pause, :admin, runner], data: { confirm: "Are you sure?" }, method: :get, class: 'btn btn-danger btn-sm'
|
2015-09-25 12:07:36 +05:30
|
|
|
- else
|
2015-12-23 02:04:40 +05:30
|
|
|
= link_to 'Resume', [:resume, :admin, runner], method: :get, class: 'btn btn-success btn-sm'
|
|
|
|
= link_to 'Remove', [:admin, runner], data: { confirm: "Are you sure?" }, method: :delete, class: 'btn btn-danger btn-sm'
|
2015-09-25 12:07:36 +05:30
|
|
|
|