summaryrefslogtreecommitdiff
path: root/app/Template/project/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Template/project/index.php')
-rw-r--r--app/Template/project/index.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/app/Template/project/index.php b/app/Template/project/index.php
index 6c04449e..4f07a83a 100644
--- a/app/Template/project/index.php
+++ b/app/Template/project/index.php
@@ -1,10 +1,10 @@
<section id="main">
<div class="page-header">
<ul>
- <?php if (Helper\is_admin()): ?>
- <li><i class="fa fa-plus fa-fw"></i><?= Helper\a(t('New project'), 'project', 'create') ?></li>
+ <?php if ($this->acl->isAdminUser()): ?>
+ <li><i class="fa fa-plus fa-fw"></i><?= $this->a(t('New project'), 'project', 'create') ?></li>
<?php endif ?>
- <li><i class="fa fa-lock fa-fw"></i><?= Helper\a(t('New private project'), 'project', 'create', array('private' => 1)) ?></li>
+ <li><i class="fa fa-lock fa-fw"></i><?= $this->a(t('New private project'), 'project', 'create', array('private' => 1)) ?></li>
</ul>
</div>
<section>
@@ -23,7 +23,7 @@
<?php if ($project['is_private']): ?>
<i class="fa fa-lock fa-fw"></i>
<?php endif ?>
- <?= Helper\a(Helper\escape($project['name']), 'project', 'show', array('project_id' => $project['id'])) ?>
+ <?= $this->a($this->e($project['name']), 'project', 'show', array('project_id' => $project['id'])) ?>
</li>
<?php endforeach ?>
</ul>
@@ -37,7 +37,7 @@
<?php if ($project['is_private']): ?>
<i class="fa fa-lock"></i>
<?php endif ?>
- <?= Helper\a(Helper\escape($project['name']), 'project', 'show', array('project_id' => $project['id'])) ?>
+ <?= $this->a($this->e($project['name']), 'project', 'show', array('project_id' => $project['id'])) ?>
</li>
<?php endforeach ?>
</ul>