diff options
Diffstat (limited to 'app/Template/project_list/project_icons.php')
-rw-r--r-- | app/Template/project_list/project_icons.php | 23 |
1 files changed, 23 insertions, 0 deletions
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> + <?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> |