summaryrefslogtreecommitdiff
path: root/app/Templates/user_edit.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Templates/user_edit.php')
-rw-r--r--app/Templates/user_edit.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/app/Templates/user_edit.php b/app/Templates/user_edit.php
index 6b83f748..8fba922f 100644
--- a/app/Templates/user_edit.php
+++ b/app/Templates/user_edit.php
@@ -48,14 +48,27 @@
<?= Helper\form_checkbox('is_admin', t('Administrator'), 1, isset($values['is_admin']) && $values['is_admin'] == 1 ? true : false) ?><br/>
<?php endif ?>
+ <ul>
<?php if (GOOGLE_AUTH && Helper\is_current_user($values['id'])): ?>
+ <li>
<?php if (empty($values['google_id'])): ?>
<a href="?controller=user&amp;action=google<?= Helper\param_csrf() ?>"><?= t('Link my Google Account') ?></a>
<?php else: ?>
<a href="?controller=user&amp;action=unlinkGoogle<?= Helper\param_csrf() ?>"><?= t('Unlink my Google Account') ?></a>
<?php endif ?>
+ </li>
<?php endif ?>
+ <?php if (GITHUB_AUTH && Helper\is_current_user($values['id'])): ?>
+ <li>
+ <?php if (empty($values['github_id'])): ?>
+ <a href="?controller=user&amp;action=gitHub<?= Helper\param_csrf() ?>"><?= t('Link my GitHub Account') ?></a>
+ <?php else: ?>
+ <a href="?controller=user&amp;action=unlinkGitHub<?= Helper\param_csrf() ?>"><?= t('Unlink my GitHub Account') ?></a>
+ <?php endif ?>
+ </li>
+ <?php endif ?>
+ </ul>
</div>
<div class="form-actions">