summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-05-07 22:44:03 -0400
committerFrederic Guillot <fred@kanboard.net>2016-05-07 22:44:03 -0400
commitf8a1e454b547d3157b3bc91987966d3a19b0dd14 (patch)
treea89b076a7aba553dbfd31235d6e5135664b17382 /app
parent8ddd56636154e5e55892fbb5ac9a5fe186b8df1f (diff)
Improve project user page
Diffstat (limited to 'app')
-rw-r--r--app/Template/project/index.php2
-rw-r--r--app/Template/project_user/layout.php2
-rw-r--r--app/Template/project_user/sidebar.php2
-rw-r--r--app/Template/project_user/tooltip_users.php12
4 files changed, 10 insertions, 8 deletions
diff --git a/app/Template/project/index.php b/app/Template/project/index.php
index 0194672a..e10467eb 100644
--- a/app/Template/project/index.php
+++ b/app/Template/project/index.php
@@ -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">
diff --git a/app/Template/project_user/layout.php b/app/Template/project_user/layout.php
index 1103e9bc..7a7c1a50 100644
--- a/app/Template/project_user/layout.php
+++ b/app/Template/project_user/layout.php
@@ -24,4 +24,4 @@
<?= $content_for_sublayout ?>
</div>
</section>
-</section> \ No newline at end of file
+</section>
diff --git a/app/Template/project_user/sidebar.php b/app/Template/project_user/sidebar.php
index ff113ebb..f1cffcad 100644
--- a/app/Template/project_user/sidebar.php
+++ b/app/Template/project_user/sidebar.php
@@ -27,4 +27,4 @@
<?= $this->hook->render('template:project-user:sidebar') ?>
</ul>
-</div> \ No newline at end of file
+</div>
diff --git a/app/Template/project_user/tooltip_users.php b/app/Template/project_user/tooltip_users.php
index f75d964b..81300eaa 100644
--- a/app/Template/project_user/tooltip_users.php
+++ b/app/Template/project_user/tooltip_users.php
@@ -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 ?> \ No newline at end of file
+ </table>
+<?php endif ?>