Replace existing runner links with icons and tooltips, move into btn-group.
This commit is contained in:
parent
c8eef2d2a6
commit
d580ccf98c
3 changed files with 31 additions and 7 deletions
|
@ -33,3 +33,20 @@
|
|||
font-weight: normal;
|
||||
}
|
||||
}
|
||||
|
||||
.admin-runner-btn-group-cell {
|
||||
min-width: 150px;
|
||||
|
||||
.btn-sm {
|
||||
padding: 4px 9px;
|
||||
}
|
||||
|
||||
.btn-default {
|
||||
color: $gl-text-color-secondary;
|
||||
}
|
||||
|
||||
.fa-pause,
|
||||
.fa-play {
|
||||
font-size: 11px;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -32,13 +32,16 @@
|
|||
#{time_ago_in_words(runner.contacted_at)} ago
|
||||
- else
|
||||
Never
|
||||
%td
|
||||
.pull-right
|
||||
= link_to 'Edit', admin_runner_path(runner), class: 'btn btn-sm'
|
||||
%td.admin-runner-btn-group-cell
|
||||
.pull-right.btn-group
|
||||
= 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')
|
||||
|
||||
- if runner.active?
|
||||
= link_to 'Pause', [:pause, :admin, runner], data: { confirm: "Are you sure?" }, method: :get, class: 'btn btn-danger btn-sm'
|
||||
= 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')
|
||||
- else
|
||||
= 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'
|
||||
|
||||
= 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')
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
title: Fix spacing on runner buttons.
|
||||
merge_request: !12535
|
||||
author:
|
Loading…
Reference in a new issue