summaryrefslogtreecommitdiff
path: root/app/Template/project/index.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-01-24 16:29:14 -0500
committerFrederic Guillot <fred@kanboard.net>2016-01-24 16:29:14 -0500
commit4fa38bf417dd7f1673f63641460092bd046d57b7 (patch)
tree6c3a0e7ea2638bd3224cfeb9c9cb1ed3d79f82b2 /app/Template/project/index.php
parent203754649e08dadeb631c2adfb0ccf4819dda941 (diff)
Add project owner
Diffstat (limited to 'app/Template/project/index.php')
-rw-r--r--app/Template/project/index.php19
1 files changed, 9 insertions, 10 deletions
diff --git a/app/Template/project/index.php b/app/Template/project/index.php
index c7d74f8b..3d2a33ea 100644
--- a/app/Template/project/index.php
+++ b/app/Template/project/index.php
@@ -23,9 +23,9 @@
<th class="column-15"><?= $paginator->order(t('Project'), 'name') ?></th>
<th class="column-8"><?= $paginator->order(t('Start date'), 'start_date') ?></th>
<th class="column-8"><?= $paginator->order(t('End date'), 'end_date') ?></th>
+ <th class="column-15"><?= $paginator->order(t('Owner'), 'owner_id') ?></th>
<?php if ($this->user->hasAccess('projectuser', 'managers')): ?>
- <th class="column-12"><?= t('Managers') ?></th>
- <th class="column-12"><?= t('Members') ?></th>
+ <th class="column-10"><?= t('Users') ?></th>
<?php endif ?>
<th><?= t('Columns') ?></th>
</tr>
@@ -66,16 +66,15 @@
<td>
<?= $project['end_date'] ?>
</td>
+ <td>
+ <?php if ($project['owner_id'] > 0): ?>
+ <?= $this->e($project['owner_name'] ?: $project['owner_username']) ?>
+ <?php endif ?>
+ </td>
<?php if ($this->user->hasAccess('projectuser', 'managers')): ?>
<td>
- <?= $this->render('project/roles', array('roles' => $project, 'role' => \Kanboard\Core\Security\Role::PROJECT_MANAGER)) ?>
- </td>
- <td>
- <?php if ($project['is_everybody_allowed'] == 1): ?>
- <?= t('Everybody') ?>
- <?php else: ?>
- <?= $this->render('project/roles', array('roles' => $project, 'role' => \Kanboard\Core\Security\Role::PROJECT_MEMBER)) ?>
- <?php endif ?>
+ <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>
</td>
<?php endif ?>
<td class="dashboard-project-stats">