summaryrefslogtreecommitdiff
path: root/app/Template/project_list/project_title.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2017-02-19 18:27:57 -0500
committerFrederic Guillot <fred@kanboard.net>2017-02-19 18:27:57 -0500
commita43f71dda953ab1ca130af875b221569e4767f05 (patch)
tree33d6f7e650110bbdc5e7bf415b3f5da7735e74d6 /app/Template/project_list/project_title.php
parentb5c56d4239c1f4e5c1b7894803c899b595797a26 (diff)
Redesign project list view
Diffstat (limited to 'app/Template/project_list/project_title.php')
-rw-r--r--app/Template/project_list/project_title.php33
1 files changed, 33 insertions, 0 deletions
diff --git a/app/Template/project_list/project_title.php b/app/Template/project_list/project_title.php
new file mode 100644
index 00000000..ddec4131
--- /dev/null
+++ b/app/Template/project_list/project_title.php
@@ -0,0 +1,33 @@
+<div>
+ <?php if ($this->user->hasProjectAccess('ProjectViewController', 'show', $project['id'])): ?>
+ <?= $this->render('project/dropdown', array('project' => $project)) ?>
+ <?php else: ?>
+ <strong><?= '#'.$project['id'] ?></strong>
+ <?php endif ?>
+
+ <span class="table-list-title <?= $project['is_active'] == 0 ? 'status-closed' : '' ?>">
+ <?= $this->url->link($this->text->e($project['name']), 'BoardViewController', 'show', array('project_id' => $project['id'])) ?>
+ </span>
+
+ <?php if ($project['is_public']): ?>
+ <i class="fa fa-share-alt fa-fw" title="<?= t('Shared project') ?>"></i>
+ <?php endif ?>
+
+ <?php if ($project['is_private']): ?>
+ <i class="fa fa-lock fa-fw" title="<?= t('Private project') ?>"></i>
+ <?php endif ?>
+
+ <?php if ($this->user->hasAccess('ProjectUserOverviewController', 'managers')): ?>
+ <span class="tooltip" title="<?= t('Members') ?>" data-href="<?= $this->url->href('ProjectUserOverviewController', 'users', array('project_id' => $project['id'])) ?>"><i class="fa fa-users"></i></span>&nbsp;
+ <?php endif ?>
+
+ <?php if (! empty($project['description'])): ?>
+ <span class="tooltip" title="<?= $this->text->markdownAttribute($project['description']) ?>">
+ <i class="fa fa-info-circle"></i>
+ </span>
+ <?php endif ?>
+
+ <?php if ($project['is_active'] == 0): ?>
+ <i class="fa fa-ban fa-fw" aria-hidden="true" title="<?= t('Closed') ?>"></i><?= t('Closed') ?>
+ <?php endif ?>
+</div>