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

@ -65,12 +65,12 @@ if ($this->hasPermission('config/authentication/users/edit') && $backend instanc
) )
) ?> ) ?>
<?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): ?>
@ -105,10 +105,6 @@ foreach ($memberships as $membership): ?>
</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>