gitlab-org--gitlab-foss/app/views/groups/runners/_runner.html.haml

28 lines
1 KiB
Text
Raw Normal View History

%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
2018-05-07 09:53:38 -04:00
= icon('edit')
2018-05-29 19:54:05 -04:00
.float-right
- 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?") }
- 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
%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