summaryrefslogtreecommitdiff
path: root/modules/gallery/views/login.html.php
diff options
context:
space:
mode:
Diffstat (limited to 'modules/gallery/views/login.html.php')
-rw-r--r--modules/gallery/views/login.html.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/gallery/views/login.html.php b/modules/gallery/views/login.html.php
index 3b327e31..ae709c7c 100644
--- a/modules/gallery/views/login.html.php
+++ b/modules/gallery/views/login.html.php
@@ -8,11 +8,15 @@
</li>
<? else: ?>
<li class="first">
+ <? if (identity::is_writable()): ?>
<?= t('Logged in as %name', array('name' => html::mark_clean(
'<a href="' . url::site("form/edit/users/{$user->id}") .
'" title="' . t("Edit Your Profile")->for_html_attr() .
'" id="g-user-profile-link" class="g-dialog-link">' .
html::clean($user->display_name()) . '</a>'))) ?>
+ <? else: ?>
+ <?= t('Logged in as %name', array('name' => html::clean($user->display_name()))) ?>
+ <? endif ?>
</li>
<li>
<a href="<?= url::site("logout?csrf=$csrf&amp;continue=" . urlencode(url::current(true))) ?>"