Improve project user page

This commit is contained in:
Frederic Guillot
2016-05-07 22:44:03 -04:00
parent 8ddd566361
commit f8a1e454b5
6 changed files with 23 additions and 21 deletions

View File

@@ -70,7 +70,7 @@
<?php if ($this->user->hasAccess('projectuser', 'managers')): ?>
<td>
<i class="fa fa-users fa-fw"></i>
<a href="#" class="tooltip" title="<?= t('Members') ?>" data-href="<?= $this->url->href('Projectuser', 'users', array('project_id' => $project['id'])) ?>"><?= t('Members') ?></a>
<span class="tooltip" title="<?= t('Members') ?>" data-href="<?= $this->url->href('Projectuser', 'users', array('project_id' => $project['id'])) ?>"><?= t('Members') ?></span>
</td>
<?php endif ?>
<td class="dashboard-project-stats">

View File

@@ -24,4 +24,4 @@
<?= $content_for_sublayout ?>
</div>
</section>
</section>
</section>

View File

@@ -27,4 +27,4 @@
<?= $this->hook->render('template:project-user:sidebar') ?>
</ul>
</div>
</div>

View File

@@ -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 ?>