Ident the user/list view script w/ 4 spaces

refs #5543
This commit is contained in:
Eric Lippmann 2015-09-25 12:23:43 +02:00
parent 49a7084b6a
commit 1728d5a949

View File

@ -14,18 +14,19 @@ if (! $this->compact): ?>
</div> </div>
</div> </div>
<?php endif ?> <?php endif ?>
<div class="content users"> <div class="content users">
<?php if (! isset($backend)): ?>
<p><?= $this->translate('No backend found which is able to list users.') ?></p>
</div>
<?php return; endif ?>
<?php if (! $users->hasResult()): ?>
<p><?= $this->translate('No users found matching the filter.') ?></p>
</div>
<?php return; endif ?>
<?php <?php
if (! isset($backend)) {
echo $this->translate('No backend found which is able to list users') . '</div>';
return;
} elseif (! $users->hasResult()) {
echo '<p>' . $this->translate('No users found matching the filter') . '</p>' . '</div>';
return;
} else {
$extensible = $this->hasPermission('config/authentication/users/add') && $backend instanceof Extensible; $extensible = $this->hasPermission('config/authentication/users/add') && $backend instanceof Extensible;
$reducible = $this->hasPermission('config/authentication/users/remove') && $backend instanceof Reducible; $reducible = $this->hasPermission('config/authentication/users/remove') && $backend instanceof Reducible;
}
?> ?>
<table data-base-target="_next" class="action user-list alternating"> <table data-base-target="_next" class="action user-list alternating">
<thead> <thead>
@ -39,15 +40,19 @@ if (! isset($backend)) {
<tbody> <tbody>
<?php foreach ($users as $user): ?> <?php foreach ($users as $user): ?>
<tr> <tr>
<td class="user-name"><?= $this->qlink($user->user_name, 'user/show', array( <td class="user-name"><?= $this->qlink(
$user->user_name,
'user/show',
array(
'backend' => $backend->getName(), 'backend' => $backend->getName(),
'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(
null, null,
'user/remove', 'user/remove',
array( array(
@ -58,8 +63,7 @@ if (! isset($backend)) {
'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>
<?php endforeach ?> <?php endforeach ?>