[Rt-commit] rt branch, 4.0/loc-cleanups, updated. rt-4.0.1rc1-8-gfb6e919
Shawn Moore
sartak at bestpractical.com
Mon May 23 18:02:19 EDT 2011
The branch, 4.0/loc-cleanups has been updated
via fb6e91940bc6a62204cab2adcadc07eab0aec23b (commit)
from 4d23f98154da7d84e86ddd29980a5e4165461eb2 (commit)
Summary of changes:
share/html/Elements/Tabs | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit fb6e91940bc6a62204cab2adcadc07eab0aec23b
Author: Shawn M Moore <sartak at bestpractical.com>
Date: Mon May 23 18:00:17 2011 -0400
Factor out a <span> from the current-user loc string
Less HTML is better *and* we previously had a "Logged in as %1" loc
string
diff --git a/share/html/Elements/Tabs b/share/html/Elements/Tabs
index d6c4388..f966053 100755
--- a/share/html/Elements/Tabs
+++ b/share/html/Elements/Tabs
@@ -381,8 +381,11 @@ my $build_admin_menu = sub {
+ my $username = '<span class="current-user">'
+ . $m->interp->apply_escapes($session{'CurrentUser'}->Name, 'h')
+ . '</span>';
my $about_me = Menu->child( 'preferences' => title =>
- loc( 'Logged in as <span class="current-user">[_1]</span>', $session{'CurrentUser'}->Name),
+ loc( 'Logged in as [_1]', $username),
escape_title => 0,
sort_order => 99
);
@@ -727,8 +730,11 @@ my $build_selfservice_nav = sub {
}
+ my $username = '<span class="current-user">'
+ . $m->interp->apply_escapes($session{'CurrentUser'}->Name, 'h')
+ . '</span>';
my $about_me = Menu->child( 'preferences' => title =>
- loc( 'Logged in as <span class="current-user">[_1]</span>', $session{'CurrentUser'}->Name),
+ loc( 'Logged in as [_1]', $username),
escape_title => 0,
sort_order => 99
);
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list