[Rt-commit] r19798 - rt/3.8/trunk/share/html/Elements

sartak at bestpractical.com sartak at bestpractical.com
Thu May 28 16:28:42 EDT 2009


Author: sartak
Date: Thu May 28 16:28:42 2009
New Revision: 19798

Added:
   rt/3.8/trunk/share/html/Elements/PersonalQuickbar
Modified:
   rt/3.8/trunk/share/html/Elements/Header

Log:
Factor out the quickbar-personal div into its own template

Modified: rt/3.8/trunk/share/html/Elements/Header
==============================================================================
--- rt/3.8/trunk/share/html/Elements/Header	(original)
+++ rt/3.8/trunk/share/html/Elements/Header	Thu May 28 16:28:42 2009
@@ -86,19 +86,7 @@
 <& /Elements/Logo, %ARGS &>
 
 <div id="quickbar">
-  <div id="quick-personal">
-    <span class="hide"><a href="#skipnav"><&|/l&>Skip Menu</&></a> | </span>
-% if ($session{'CurrentUser'}->Name) {
-    <&|/l, "<span>".$session{'CurrentUser'}->Name."</span>" &>Logged in as [_1]</&>
-%     if ( $session{'CurrentUser'}->HasRight( Right => 'ModifySelf', Object => $RT::System ) ) {
-    | <a href="<%RT->Config->Get('WebPath')%><%$Prefs%>"><&|/l&>Preferences</&></a>
-%     }
-% } else {
-    <&|/l&>Not logged in.</&>
-% }
-% $m->callback( %ARGS );
-<& Logout, %ARGS &>
-  </div>
+  <& /Elements/PersonalQuickbar, %ARGS &>
 % }
 
 <%INIT>
@@ -115,7 +103,6 @@
 </%INIT>
 
 <%ARGS>
-$Prefs => '/Prefs/Other.html'
 #$Focus => 'focus'
 $Focus => ''
 $Title =>  'RT'

Added: rt/3.8/trunk/share/html/Elements/PersonalQuickbar
==============================================================================
--- (empty file)
+++ rt/3.8/trunk/share/html/Elements/PersonalQuickbar	Thu May 28 16:28:42 2009
@@ -0,0 +1,16 @@
+<%ARGS>
+$Prefs => '/Prefs/Other.html'
+</%ARGS>
+<div id="quick-personal">
+    <span class="hide"><a href="#skipnav"><&|/l&>Skip Menu</&></a> | </span>
+% if ($session{'CurrentUser'}->Name) {
+    <&|/l, "<span>".$session{'CurrentUser'}->Name."</span>" &>Logged in as [_1]</&>
+%     if ( $session{'CurrentUser'}->HasRight( Right => 'ModifySelf', Object => $RT::System ) ) {
+    | <a href="<%RT->Config->Get('WebPath')%><%$Prefs%>"><&|/l&>Preferences</&></a>
+%     }
+% } else {
+    <&|/l&>Not logged in.</&>
+% }
+% $m->callback( %ARGS );
+<& Logout, %ARGS &>
+</div>


More information about the Rt-commit mailing list