27 lines
1,015 B
Text
27 lines
1,015 B
Text
%li.runner{ id: dom_id(runner) }
|
|
%h4
|
|
= runner_status_icon(runner)
|
|
|
|
= link_to runner.short_sha, group_runner_path(@group, runner), class: 'commit-sha'
|
|
|
|
%small.edit-runner
|
|
= link_to edit_group_runner_path(@group, runner) do
|
|
%i.fa.fa-edit.btn
|
|
|
|
.pull-right
|
|
- if runner.active?
|
|
= link_to 'Pause', pause_group_runner_path(@group, runner), method: :post, class: 'btn btn-sm btn-danger', data: { confirm: "Are you sure?" }
|
|
- else
|
|
= 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'
|
|
.pull-right
|
|
%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
|