debian-mirror-gitlab/app/views/admin/runners/_runner.html.haml

52 lines
1.9 KiB
Text
Raw Normal View History

2017-08-17 22:00:37 +05:30
%tr{ id: dom_id(runner) }
2015-09-25 12:07:36 +05:30
%td
2018-11-08 19:23:39 +05:30
- if runner.instance_type?
%span.badge.badge-success shared
2018-10-15 14:42:47 +05:30
- elsif runner.group_type?
2018-11-08 19:23:39 +05:30
%span.badge.badge-success group
2015-09-25 12:07:36 +05:30
- else
2018-11-08 19:23:39 +05:30
%span.badge.badge-info specific
2016-08-24 12:49:21 +05:30
- if runner.locked?
2018-11-08 19:23:39 +05:30
%span.badge.badge-warning locked
2015-09-25 12:07:36 +05:30
- unless runner.active?
2018-11-08 19:23:39 +05:30
%span.badge.badge-danger paused
2015-09-25 12:07:36 +05:30
%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
2017-08-17 22:00:37 +05:30
%td
= runner.version
2018-03-27 19:54:05 +05:30
%td
= runner.ip_address
2015-09-25 12:07:36 +05:30
%td
2018-11-08 19:23:39 +05:30
- if runner.instance_type? || runner.group_type?
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
2017-08-17 22:00:37 +05:30
- runner.tag_list.sort.each do |tag|
2018-11-08 19:23:39 +05:30
%span.badge.badge-primary
2015-09-25 12:07:36 +05:30
= tag
%td
- if runner.contacted_at
2018-11-08 19:23:39 +05:30
= time_ago_with_tooltip runner.contacted_at
2015-09-25 12:07:36 +05:30
- else
Never
2017-09-10 17:25:29 +05:30
%td.admin-runner-btn-group-cell
2018-11-08 19:23:39 +05:30
.float-right.btn-group
2017-09-10 17:25:29 +05:30
= link_to admin_runner_path(runner), class: 'btn btn-sm btn-default has-tooltip', title: 'Edit', ref: 'tooltip', aria: { label: 'Edit' }, data: { placement: 'top', container: 'body'} do
= icon('pencil')
2015-09-25 12:07:36 +05:30
 
- if runner.active?
2017-09-10 17:25:29 +05:30
= link_to [:pause, :admin, runner], method: :get, class: 'btn btn-sm btn-default has-tooltip', title: 'Pause', ref: 'tooltip', aria: { label: 'Pause' }, data: { placement: 'top', container: 'body', confirm: "Are you sure?" } do
= icon('pause')
2015-09-25 12:07:36 +05:30
- else
2017-09-10 17:25:29 +05:30
= link_to [:resume, :admin, runner], method: :get, class: 'btn btn-default btn-sm has-tooltip', title: 'Resume', ref: 'tooltip', aria: { label: 'Resume' }, data: { placement: 'top', container: 'body'} do
= 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')