Improve project user page
This commit is contained in:
@@ -24,4 +24,4 @@
|
||||
<?= $content_for_sublayout ?>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
</section>
|
||||
|
||||
@@ -27,4 +27,4 @@
|
||||
|
||||
<?= $this->hook->render('template:project-user:sidebar') ?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,14 +1,16 @@
|
||||
<?php if (empty($users)): ?>
|
||||
<p><?= t('There is no project member.') ?></p>
|
||||
<?php else: ?>
|
||||
<table>
|
||||
<?php foreach ($roles as $role => $role_name): ?>
|
||||
<?php if (isset($users[$role])): ?>
|
||||
<strong><?= $role_name ?></strong>
|
||||
<ul>
|
||||
<tr><th><?= $role_name ?></th></tr>
|
||||
<?php foreach ($users[$role] as $user_id => $user): ?>
|
||||
<li><?= $this->url->link($this->text->e($user), 'Projectuser', 'opens', array('user_id' => $user_id)) ?></li>
|
||||
<tr><td>
|
||||
<?= $this->url->link($this->text->e($user), 'Projectuser', 'opens', array('user_id' => $user_id)) ?>
|
||||
</td></tr>
|
||||
<?php endforeach ?>
|
||||
</ul>
|
||||
<?php endif ?>
|
||||
<?php endforeach ?>
|
||||
<?php endif ?>
|
||||
</table>
|
||||
<?php endif ?>
|
||||
|
||||
Reference in New Issue
Block a user