summaryrefslogtreecommitdiff
path: root/app/Template/user/external.php
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-12-28 11:28:50 -0500
committerFrédéric Guillot <fred@kanboard.net>2014-12-28 11:28:50 -0500
commit34d7450d3c13342715e90ec21bceaa13e1baa876 (patch)
treea2d8f2f22ad3fe9b56f01fe2db0357f9b963e660 /app/Template/user/external.php
parent88d84073aecbe8bdc5f10825b6d7ca6b81c5f7b1 (diff)
Template helpers refactoring
Diffstat (limited to 'app/Template/user/external.php')
-rw-r--r--app/Template/user/external.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/app/Template/user/external.php b/app/Template/user/external.php
index 31ffcb75..6ee1e459 100644
--- a/app/Template/user/external.php
+++ b/app/Template/user/external.php
@@ -6,11 +6,11 @@
<h3><i class="fa fa-google"></i> <?= t('Google Account') ?></h3>
<p class="listing">
- <?php if (Helper\is_current_user($user['id'])): ?>
+ <?php if ($this->acl->isCurrentUser($user['id'])): ?>
<?php if (empty($user['google_id'])): ?>
- <?= Helper\a(t('Link my Google Account'), 'user', 'google', array(), true) ?>
+ <?= $this->a(t('Link my Google Account'), 'user', 'google', array(), true) ?>
<?php else: ?>
- <?= Helper\a(t('Unlink my Google Account'), 'user', 'unlinkGoogle', array(), true) ?>
+ <?= $this->a(t('Unlink my Google Account'), 'user', 'unlinkGoogle', array(), true) ?>
<?php endif ?>
<?php else: ?>
<?= empty($user['google_id']) ? t('No account linked.') : t('Account linked.') ?>
@@ -22,11 +22,11 @@
<h3><i class="fa fa-github"></i> <?= t('Github Account') ?></h3>
<p class="listing">
- <?php if (Helper\is_current_user($user['id'])): ?>
+ <?php if ($this->acl->isCurrentUser($user['id'])): ?>
<?php if (empty($user['github_id'])): ?>
- <?= Helper\a(t('Link my GitHub Account'), 'user', 'github', array(), true) ?>
+ <?= $this->a(t('Link my GitHub Account'), 'user', 'github', array(), true) ?>
<?php else: ?>
- <?= Helper\a(t('Unlink my GitHub Account'), 'user', 'unlinkGitHub', array(), true) ?>
+ <?= $this->a(t('Unlink my GitHub Account'), 'user', 'unlinkGitHub', array(), true) ?>
<?php endif ?>
<?php else: ?>
<?= empty($user['github_id']) ? t('No account linked.') : t('Account linked.') ?>