Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refs #8826
- Loading branch information
Johannes Meyer
committed
May 20, 2015
1 parent
94cd4b9
commit ed166d6
Showing
4 changed files
with
91 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<?php | ||
|
||
use Icinga\Data\Updatable; | ||
|
||
$editLink = null; | ||
if ($backend instanceof Updatable) { | ||
$editLink = $this->qlink( | ||
null, | ||
'group/edit', | ||
array( | ||
'backend' => $backend->getName(), | ||
'group' => $group->group_name | ||
), | ||
array( | ||
'title' => sprintf($this->translate('Edit group %s'), $group->group_name), | ||
'class' => 'group-edit', | ||
'icon' => 'edit' | ||
) | ||
); | ||
} | ||
|
||
?> | ||
<div class="controls"> | ||
<?php if (! $this->compact): ?> | ||
<?= $tabs->showOnlyCloseButton(); ?> | ||
<?php endif ?> | ||
<div class="group-header"> | ||
<p class="group-name"><strong><?= $this->escape($group->group_name); ?></strong></p> <?= $editLink; ?> | ||
<p class="group-parent"><strong><?= $this->translate('Parent'); ?>:</strong> <?= $group->parent_name === null ? '-' : $this->qlink( | ||
$group->parent_name, | ||
'group/show', | ||
array( | ||
'backend' => $backend->getName(), | ||
'group' => $group->parent_name | ||
), | ||
array( | ||
'title' => sprintf($this->translate('Show detailed information for group %s'), $group->parent_name) | ||
) | ||
); ?></p> | ||
<p class="group-created"><strong><?= $this->translate('Created at'); ?>:</strong> <?= $group->created_at === null ? '-' : $this->formatDateTime($group->created_at); ?></p> | ||
<p class="group-modified"><strong><?= $this->translate('Last modified'); ?>:</strong> <?= $group->last_modified === null ? '-' : $this->formatDateTime($group->last_modified); ?></p> | ||
</div> | ||
</div> | ||
<div class="content" data-base-target="_next"> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters