summaryrefslogtreecommitdiff
path: root/themes/admin_wind/views
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-10-28 11:38:05 -0700
committerTim Almdal <tnalmdal@shaw.ca>2009-10-28 11:38:05 -0700
commit8ef78de3f72f695225ac87223d0815235a630417 (patch)
treef2d749126bcd7e54db095e5091fcd1a4e4844929 /themes/admin_wind/views
parent2a21f3bc80758a20635534b837c11836a72b202c (diff)
parentfbc551771153a6664da2c3a3a82e22b912bb3cdc (diff)
Merge branch 'master' of git@github.com:gallery/gallery3
Diffstat (limited to 'themes/admin_wind/views')
-rw-r--r--themes/admin_wind/views/admin.html.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/themes/admin_wind/views/admin.html.php b/themes/admin_wind/views/admin.html.php
index d88cabf6..ef1aa1d2 100644
--- a/themes/admin_wind/views/admin.html.php
+++ b/themes/admin_wind/views/admin.html.php
@@ -44,7 +44,17 @@
<div id="g-header">
<?= $theme->admin_header_top() ?>
<ul id="g-login-menu" class="g-inline g-right">
- <li class="g-first"><?= html::anchor(item::root()->abs_url(), "&larr; ".t("Back to the Gallery")) ?></li>
+ <li class="g-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 id="g-logout-link"><a href="<?= url::site("logout?csrf=$csrf&amp;continue=" . urlencode(item::root()->url())) ?>"><?= t("Logout") ?></a></li>
</ul>
<a id="g-logo" href="<?= item::root()->url() ?>" title="<?= t("go back to the Gallery")->for_html_attr() ?>">