user/show.phtml: Fix coding style

refs #10367
This commit is contained in:
Johannes Meyer 2015-10-15 13:45:43 +02:00
parent 331822ad15
commit 2168839349

View File

@ -52,7 +52,7 @@ if ($this->hasPermission('config/authentication/users/edit') && $backend instanc
<?php endif ?> <?php endif ?>
</div> </div>
<div class="content memberships"> <div class="content memberships">
<?php if ($showCreateMembershipLink): ?> <?php if ($showCreateMembershipLink): ?>
<?= $this->qlink( <?= $this->qlink(
$this->translate('Add User to Group') , $this->translate('Add User to Group') ,
'user/createmembership', 'user/createmembership',
@ -64,13 +64,13 @@ if ($this->hasPermission('config/authentication/users/edit') && $backend instanc
'title' => $this->translate('Add user to user group') 'title' => $this->translate('Add user to user group')
) )
) ?> ) ?>
<?php endif ?> <?php endif ?>
<?php
// @TODO(el): Remove that $firstRow thingy <?php if (! $memberships->hasResult()): ?>
$firstRow = true; <p><?= $this->translate('No memberships found matching the filter'); ?></p>
foreach ($memberships as $membership): ?> </div>
<?php if ($firstRow): ?> <?php return; endif ?>
<?php $firstRow = false; ?>
<table data-base-target="_next" class="action-table listing-table"> <table data-base-target="_next" class="action-table listing-table">
<thead> <thead>
<tr> <tr>
@ -79,7 +79,7 @@ foreach ($memberships as $membership): ?>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<?php endif ?> <?php foreach ($memberships as $membership): ?>
<tr> <tr>
<td class="membership-group"> <td class="membership-group">
<?php if ($this->hasPermission('config/authentication/groups/show') && $membership->backend instanceof Selectable): ?> <?php if ($this->hasPermission('config/authentication/groups/show') && $membership->backend instanceof Selectable): ?>
@ -104,11 +104,7 @@ foreach ($memberships as $membership): ?>
<?php endif ?> <?php endif ?>
</td> </td>
</tr> </tr>
<?php endforeach ?> <?php endforeach ?>
<?php if ($memberships->hasResult()): ?>
</tbody> </tbody>
</table> </table>
<?php else: ?>
<p><?= $this->translate('No memberships found matching the filter'); ?></p>
<?php endif ?>
</div> </div>