blob: 222934bcd8cee370a458c70362551fb618134c45 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
<?php
namespace Icinga\Module\Director\Web\Widget;
use gipfl\Translation\TranslationHelper;
use gipfl\Web\Widget\Hint;
use Icinga\Authentication\Auth;
use Icinga\Module\Director\Db\Branch\Branch;
use ipl\Html\Html;
class NotInBranchedHint extends Hint
{
use TranslationHelper;
public function __construct($forbiddenAction, Branch $branch, Auth $auth)
{
parent::__construct(Html::sprintf(
$this->translate('%s is not available while being in a Configuration Branch: %s'),
$forbiddenAction,
Branch::requireHook()->linkToBranch($branch, $auth, $branch->getName())
), 'info');
}
}
|