summaryrefslogtreecommitdiff
path: root/app/Template
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2017-02-26 14:19:53 -0500
committerFrederic Guillot <fred@kanboard.net>2017-02-26 14:19:53 -0500
commit27328255cd727f188e735c2202d0ee95db265677 (patch)
treec175a0bf2cb07fe6ed85372bc60b14aacfb549d4 /app/Template
parent159c31cd3f23f45c1cf51c71f1049714ea603eb3 (diff)
Display project list icons on the right
Diffstat (limited to 'app/Template')
-rw-r--r--app/Template/project_list/listing.php4
-rw-r--r--app/Template/project_list/project_details.php2
-rw-r--r--app/Template/project_list/project_icons.php23
-rw-r--r--app/Template/project_list/project_title.php22
4 files changed, 28 insertions, 23 deletions
diff --git a/app/Template/project_list/listing.php b/app/Template/project_list/listing.php
index 9c5dfe0e..f8c46729 100644
--- a/app/Template/project_list/listing.php
+++ b/app/Template/project_list/listing.php
@@ -39,6 +39,10 @@
<?= $this->render('project_list/project_details', array(
'project' => $project,
)) ?>
+
+ <?= $this->render('project_list/project_icons', array(
+ 'project' => $project,
+ )) ?>
</div>
<?php endforeach ?>
</div>
diff --git a/app/Template/project_list/project_details.php b/app/Template/project_list/project_details.php
index 136afc92..e83c6c7f 100644
--- a/app/Template/project_list/project_details.php
+++ b/app/Template/project_list/project_details.php
@@ -1,4 +1,4 @@
-<div class="table-list-details">
+<div class="table-list-details table-list-details-with-icons">
<ul>
<?php if ($project['owner_id'] > 0): ?>
<li><?= $this->text->e($project['owner_name'] ?: $project['owner_username']) ?></li>
diff --git a/app/Template/project_list/project_icons.php b/app/Template/project_list/project_icons.php
new file mode 100644
index 00000000..c7e9c4a9
--- /dev/null
+++ b/app/Template/project_list/project_icons.php
@@ -0,0 +1,23 @@
+<div class="table-list-icons">
+ <?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>
diff --git a/app/Template/project_list/project_title.php b/app/Template/project_list/project_title.php
index ddec4131..01c655cf 100644
--- a/app/Template/project_list/project_title.php
+++ b/app/Template/project_list/project_title.php
@@ -8,26 +8,4 @@
<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>