diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2010-01-23 21:38:01 -0800 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2010-01-23 21:38:01 -0800 |
commit | ed5b07b335d8bd1520f3b54bf28272f853bbfbfb (patch) | |
tree | 45c511ca0ad64142c5de7be64fa508b469bb89ad /modules/gallery/views/login_current_user.html.php | |
parent | a1a3d4f59568dc7de2b309796752a49242fde6f0 (diff) |
Create a user profile page that is used as a landing page when referencing a user in messages or pages.
Partial fix for ticket #889 and a fix for #931.
Diffstat (limited to 'modules/gallery/views/login_current_user.html.php')
-rw-r--r-- | modules/gallery/views/login_current_user.html.php | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/modules/gallery/views/login_current_user.html.php b/modules/gallery/views/login_current_user.html.php index e3b3688f..39f52b51 100644 --- a/modules/gallery/views/login_current_user.html.php +++ b/modules/gallery/views/login_current_user.html.php @@ -1,11 +1,8 @@ <?php defined("SYSPATH") or die("No direct script access.") ?> <li> <? $name = $menu->label->for_html() ?> - <? if (identity::is_writable()): ?> + <? $hover_text = Identity::is_writable() ? t("Edit your profile")->for_html_attr() : + t("Display your profile")->for_html_attr() ?> <?= t("Logged in as %name", array("name" => html::mark_clean( - "<a href='$menu->url' title='" . t("Edit your profile")->for_html_attr() . - "' id='$menu->id' class='g-dialog-link'>{$name}</a>"))) ?> - <? else: ?> - <?= t("Logged in as %name", array("name" => $name)) ?> - <? endif ?> + "<a href='$menu->url' title='$hover_text' id='$menu->id'>{$name}</a>"))) ?> </li> |