Remove trailing semicolons from inline echo tags in the user/list view script

refs #5543
This commit is contained in:
Eric Lippmann 2015-09-25 11:48:18 +02:00
parent c90adc1966
commit ac6398de0d
1 changed files with 14 additions and 15 deletions

View File

@ -1,17 +1,16 @@
<?php <?php
use Icinga\Data\Extensible; use Icinga\Data\Extensible;
use Icinga\Data\Reducible; use Icinga\Data\Reducible;
if (! $this->compact): ?> if (! $this->compact): ?>
<div class="controls"> <div class="controls">
<?= $this->tabs; ?> <?= $this->tabs ?>
<?= $this->sortBox; ?> <?= $this->sortBox ?>
<?= $this->limiter; ?> <?= $this->limiter ?>
<?= $this->paginator; ?> <?= $this->paginator ?>
<div> <div>
<?= $this->backendSelection; ?> <?= $this->backendSelection ?>
<?= $this->filterEditor; ?> <?= $this->filterEditor ?>
</div> </div>
</div> </div>
<?php endif ?> <?php endif ?>
@ -29,13 +28,13 @@ if (! isset($backend)) {
$firstRow = true; $firstRow = true;
foreach ($users as $user): ?> foreach ($users as $user): ?>
<?php if ($firstRow): ?> <?php if ($firstRow): ?>
<?php $firstRow = false; ?> <?php $firstRow = false ?>
<table data-base-target="_next" class="action user-list alternating"> <table data-base-target="_next" class="action user-list alternating">
<thead> <thead>
<tr> <tr>
<th class="user-name"><?= $this->translate('Username'); ?></th> <th class="user-name"><?= $this->translate('Username') ?></th>
<?php if ($reducible): ?> <?php if ($reducible): ?>
<th class="user-remove"><?= $this->translate('Remove'); ?></th> <th class="user-remove"><?= $this->translate('Remove') ?></th>
<?php endif ?> <?php endif ?>
</tr> </tr>
</thead> </thead>
@ -47,7 +46,7 @@ foreach ($users as $user): ?>
'user' => $user->user_name 'user' => $user->user_name
), array( ), array(
'title' => sprintf($this->translate('Show detailed information about %s'), $user->user_name) 'title' => sprintf($this->translate('Show detailed information about %s'), $user->user_name)
)); ?></td> )) ?></td>
<?php if ($reducible): ?> <?php if ($reducible): ?>
<td class="user-remove"> <td class="user-remove">
<?= $this->qlink( <?= $this->qlink(
@ -61,7 +60,7 @@ foreach ($users as $user): ?>
'title' => sprintf($this->translate('Remove user %s'), $user->user_name), 'title' => sprintf($this->translate('Remove user %s'), $user->user_name),
'icon' => 'trash' 'icon' => 'trash'
) )
); ?> ) ?>
</td> </td>
<?php endif ?> <?php endif ?>
</tr> </tr>
@ -70,13 +69,13 @@ foreach ($users as $user): ?>
</tbody> </tbody>
</table> </table>
<?php else: ?> <?php else: ?>
<p><?= $this->translate('No users found matching the filter'); ?></p> <p><?= $this->translate('No users found matching the filter') ?></p>
<?php endif ?> <?php endif ?>
<?php if ($extensible): ?> <?php if ($extensible): ?>
<?= $this->qlink($this->translate('Add a new user'), 'user/add', array('backend' => $backend->getName()), array( <?= $this->qlink($this->translate('Add a new user'), 'user/add', array('backend' => $backend->getName()), array(
'icon' => 'plus', 'icon' => 'plus',
'data-base-target' => '_next', 'data-base-target' => '_next',
'class' => 'user-add' 'class' => 'user-add'
)); ?> )) ?>
<?php endif ?> <?php endif ?>
</div> </div>