2014-10-22 19:59:09 +02:00
|
|
|
<section id="main">
|
|
|
|
<div class="page-header">
|
|
|
|
<h2><?= Helper\escape($user['name'] ?: $user['username']).' (#'.$user['id'].')' ?></h2>
|
2014-11-23 20:13:38 +01:00
|
|
|
<?php if (Helper\is_admin()): ?>
|
2014-10-22 19:59:09 +02:00
|
|
|
<ul>
|
|
|
|
<li><a href="?controller=user&action=index"><?= t('All users') ?></a></li>
|
2014-11-23 20:13:38 +01:00
|
|
|
<li><a href="?controller=user&action=create"><?= t('New user') ?></a></li>
|
2014-10-22 19:59:09 +02:00
|
|
|
</ul>
|
2014-11-23 20:13:38 +01:00
|
|
|
<?php endif ?>
|
2014-10-22 19:59:09 +02:00
|
|
|
</div>
|
|
|
|
<section class="user-show" id="user-section">
|
|
|
|
|
|
|
|
<?= Helper\template('user_sidebar', array('user' => $user)) ?>
|
|
|
|
|
|
|
|
<div class="user-show-main">
|
|
|
|
<?= $user_content_for_layout ?>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
</section>
|