mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-09-23 09:57:58 +02:00
WIP
This commit is contained in:
parent
c554ebb473
commit
c4661d4ef0
@ -35,14 +35,12 @@ if (empty($object->comments) && ! $addLink) {
|
||||
<tr>
|
||||
<th><?php
|
||||
echo $this->translate('Comments');
|
||||
if (! empty($object->comments) && $addLink) {
|
||||
echo '<br>' . $addLink;
|
||||
}
|
||||
?></th>
|
||||
<td data-base-target="_self">
|
||||
<?php if (empty($object->comments)):
|
||||
<?php if ($addLink):
|
||||
echo $addLink;
|
||||
else: ?>
|
||||
endif ?>
|
||||
<?php if (!empty($object->comments)): ?>
|
||||
<dl class="comment-list">
|
||||
<?php foreach ($object->comments as $comment): ?>
|
||||
<dt>
|
||||
@ -72,6 +70,10 @@ if (empty($object->comments) && ! $addLink) {
|
||||
</dd>
|
||||
<?php endforeach ?>
|
||||
</dl>
|
||||
<?php else:
|
||||
$msg = $this->translate('No comments have been sent for this issue.');
|
||||
echo '<p class="empty">' . $msg . '</p>';
|
||||
?>
|
||||
<?php endif ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -39,14 +39,10 @@ if (empty($object->comments) && ! $addLink) {
|
||||
<tr>
|
||||
<th><?php
|
||||
echo $this->translate('Downtimes');
|
||||
if (! empty($object->downtimes) && $addLink) {
|
||||
echo '<br>' . $addLink;
|
||||
}
|
||||
?></th>
|
||||
<td data-base-target="_self">
|
||||
<?php if (empty($object->downtimes)):
|
||||
echo $addLink;
|
||||
else: ?>
|
||||
<?php if ($addLink) { echo $addLink; } ?>
|
||||
<?php if (!empty($object->downtimes)): ?>
|
||||
<dl class="comment-list">
|
||||
<?php foreach ($object->downtimes as $downtime):
|
||||
if ((bool) $downtime->is_in_effect) {
|
||||
@ -112,6 +108,10 @@ if (empty($object->comments) && ! $addLink) {
|
||||
</dd>
|
||||
<?php endforeach ?>
|
||||
</dl>
|
||||
<?php endif ?>
|
||||
<?php else:
|
||||
$msg = $this->translate('No downtimes have been scheduled for this issue.');
|
||||
echo '<p class="empty">' . $msg . '</p>';
|
||||
endif;
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -61,7 +61,7 @@
|
||||
} else {
|
||||
$msg = $this->translate('No notification has been sent for this issue.');
|
||||
}
|
||||
echo $msg;
|
||||
echo '<p class="empty">' . $msg . '</p>';
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
|
@ -518,7 +518,7 @@ form.instance-features span.description, form.object-features span.description {
|
||||
|
||||
.object-features {
|
||||
.control-label-group {
|
||||
text-align: left;
|
||||
text-align: right;
|
||||
padding: @table-column-padding;
|
||||
padding-left: 0;
|
||||
width: @name-value-table-name-width;
|
||||
|
@ -111,6 +111,7 @@ label {
|
||||
padding-right: @horizontal-padding;
|
||||
text-align: right;
|
||||
width: 10em;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
.control-group {
|
||||
|
@ -49,6 +49,10 @@
|
||||
}
|
||||
}
|
||||
|
||||
.empty {
|
||||
color: @gray-light;
|
||||
}
|
||||
|
||||
.section {
|
||||
margin-bottom: 2em;
|
||||
}
|
||||
@ -172,6 +176,10 @@ a:hover > .icon-cancel {
|
||||
|
||||
.name-value-table {
|
||||
width: 100%;
|
||||
|
||||
p.empty {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.name-value-table > tbody > tr > th {
|
||||
@ -179,7 +187,8 @@ a:hover > .icon-cancel {
|
||||
// Reset default font-weight
|
||||
font-weight: normal;
|
||||
padding-left: 0;
|
||||
text-align: left;
|
||||
padding-right: 1em;
|
||||
text-align: right;
|
||||
vertical-align: top;
|
||||
width: @name-value-table-name-width;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user