summaryrefslogtreecommitdiff
path: root/app/Template/project_list/project_icons.php
blob: b359bcfeb15b75567037db6ed5ffd09a6e1ad64c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<div class="table-list-icons">
    &nbsp;

    <?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')): ?>
        <?= $this->app->tooltipLink('<i class="fa fa-users"></i>', $this->url->href('ProjectUserOverviewController', 'users', array('project_id' => $project['id']))) ?>
    <?php endif ?>

    <?php if (! empty($project['description'])): ?>
        <?= $this->app->tooltipMarkdown($project['description']) ?>
    <?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>