2018-04-03 21:12:26 -04:00
|
|
|
%li.runner{ id: dom_id(runner) }
|
|
|
|
%h4
|
|
|
|
= runner_status_icon(runner)
|
|
|
|
|
2018-04-10 00:29:06 -04:00
|
|
|
= link_to runner.short_sha, group_runner_path(@group, runner), class: 'commit-sha'
|
2018-04-03 21:12:26 -04:00
|
|
|
|
2018-04-10 00:29:06 -04:00
|
|
|
%small.edit-runner
|
|
|
|
= link_to edit_group_runner_path(@group, runner) do
|
2018-05-07 09:53:38 -04:00
|
|
|
= icon('edit')
|
2018-04-10 00:29:06 -04:00
|
|
|
|
2018-05-29 19:54:05 -04:00
|
|
|
.float-right
|
2018-04-10 00:29:06 -04:00
|
|
|
- if runner.active?
|
2018-05-07 09:53:38 -04:00
|
|
|
= link_to _('Pause'), pause_group_runner_path(@group, runner), method: :post, class: 'btn btn-sm btn-danger', data: { confirm: _("Are you sure?") }
|
2018-04-10 00:29:06 -04:00
|
|
|
- else
|
2018-05-07 09:53:38 -04:00
|
|
|
= link_to _('Resume'), resume_group_runner_path(@group, runner), method: :post, class: 'btn btn-success btn-sm'
|
|
|
|
= link_to _('Remove Runner'), group_runner_path(@group, runner), data: { confirm: _("Are you sure?") }, method: :delete, class: 'btn btn-danger btn-sm'
|
2018-05-29 19:54:05 -04:00
|
|
|
.float-right
|
2018-04-03 21:12:26 -04:00
|
|
|
%small.light
|
|
|
|
\##{runner.id}
|
|
|
|
- if runner.description.present?
|
|
|
|
%p.runner-description
|
|
|
|
= runner.description
|
|
|
|
- if runner.tag_list.present?
|
|
|
|
%p
|
|
|
|
- runner.tag_list.sort.each do |tag|
|
|
|
|
%span.label.label-primary
|
|
|
|
= tag
|