Merge pull request #173 from Icinga/feature/make-ui-lock-intuitive

Change lock text and make action-bar icons bigger
This commit is contained in:
Eric Lippmann 2018-06-26 13:35:19 +02:00 committed by GitHub
commit 887bbd97f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 6 deletions

View file

@ -59,24 +59,24 @@ class RenderedProcessActionBar extends ActionBar
if ($renderer->isLocked()) {
$this->add(
Link::create(
$this->translate('Unlock'),
$this->translate('Editing locked'),
$url->with('unlocked', true),
null,
array(
'class' => 'icon-lock-open',
'title' => $this->translate('Unlock this process'),
'class' => 'icon-lock',
'title' => $this->translate('Click to unlock editing for this process'),
)
)
);
} elseif (! $hasChanges) {
$this->add(
Link::create(
$this->translate('Lock'),
$this->translate('Editing unlocked'),
$url->without('unlocked')->without('action'),
null,
array(
'class' => 'icon-lock',
'title' => $this->translate('Lock this process'),
'class' => 'icon-lock-open',
'title' => $this->translate('Click to lock editing for this process'),
)
)
);

View file

@ -7,6 +7,7 @@ a:focus {
}
.action-bar a {
font-size: 1.3em;
color: @icinga-blue;
&:hover::before {
text-decoration: none;