[Rt-commit] r4094 - in rt/branches/3.5-TESTING: . html/Admin/Groups html/Admin/Users html/Ticket/Elements

trs at bestpractical.com trs at bestpractical.com
Mon Nov 14 18:30:42 EST 2005


Author: trs
Date: Mon Nov 14 18:30:41 2005
New Revision: 4094

Modified:
   rt/branches/3.5-TESTING/   (props changed)
   rt/branches/3.5-TESTING/html/Admin/Groups/History.html
   rt/branches/3.5-TESTING/html/Admin/Users/History.html
   rt/branches/3.5-TESTING/html/Ticket/Elements/ShowHistory
Log:
 r6954 at wintermute:  tom | 2005-11-14 18:16:02 -0500
 * Cleaned up logic in ShowHistory
 * Fixed params in the Group/User histories


Modified: rt/branches/3.5-TESTING/html/Admin/Groups/History.html
==============================================================================
--- rt/branches/3.5-TESTING/html/Admin/Groups/History.html	(original)
+++ rt/branches/3.5-TESTING/html/Admin/Groups/History.html	Mon Nov 14 18:30:41 2005
@@ -52,7 +52,7 @@
 
 <& /Ticket/Elements/ShowHistory,
     Ticket => $GroupObj,
-    ShowHeaderModes => 0,
+    ShowDisplayModes => 0,
 &>
 
 <%INIT>

Modified: rt/branches/3.5-TESTING/html/Admin/Users/History.html
==============================================================================
--- rt/branches/3.5-TESTING/html/Admin/Users/History.html	(original)
+++ rt/branches/3.5-TESTING/html/Admin/Users/History.html	Mon Nov 14 18:30:41 2005
@@ -52,7 +52,7 @@
 
 <& /Ticket/Elements/ShowHistory,
     Ticket => $UserObj,
-    ShowHeaderModes => 0,
+    ShowDisplayModes => 0,
 &>
 
 <%INIT>

Modified: rt/branches/3.5-TESTING/html/Ticket/Elements/ShowHistory
==============================================================================
--- rt/branches/3.5-TESTING/html/Ticket/Elements/ShowHistory	(original)
+++ rt/branches/3.5-TESTING/html/Ticket/Elements/ShowHistory	Mon Nov 14 18:30:41 2005
@@ -44,30 +44,31 @@
 %# 
 %# END BPS TAGGED BLOCK }}}
 <%perl>
- if ($ShowDisplayModes or $ShowTitle) {
-my $title;
-my $titleright;
-if ($ShowTitle) {
-    $title = loc('History');
-}
-else {
-    $title = '&nbsp;';
-}
-$titleright = q[<span style="color: black">] . loc('Display mode') . ':</span> ';
-if ($ShowHeaders) {
-    $titleright .= qq{<a href="$URIFile?id=} .
-                   $Ticket->id.qq{">} .
-                   loc("Brief headers") .
-                   qq{</a> &mdash; };
-    $titleright .= q[<span class="selected">] . loc("Full headers") . "</span>";
-}
-else {
-    $titleright .= q[<span class="selected">] . loc("Brief headers") . "</span> &mdash; ";
-    $titleright .= qq{<a href="$URIFile?ShowHeaders=1;id=} .
-                   $Ticket->id.qq{">} .
-                   loc("Full headers") .
-                   qq{</a>};
-}
+if ($ShowDisplayModes or $ShowTitle) {
+    my $title = $ShowTitle
+                    ? loc('History')
+                    : '&nbsp;';
+
+    my $titleright;
+
+    if ($ShowDisplayModes) {
+        $titleright = q[<span style="color: black">] . loc('Display mode') . ':</span> ';
+        
+        if ($ShowHeaders) {
+            $titleright .= qq{<a href="$URIFile?id=} .
+                           $Ticket->id.qq{">} .
+                           loc("Brief headers") .
+                           qq{</a> &mdash; };
+            $titleright .= q[<span class="selected">] . loc("Full headers") . "</span>";
+        }
+        else {
+            $titleright .= q[<span class="selected">] . loc("Brief headers") . "</span> &mdash; ";
+            $titleright .= qq{<a href="$URIFile?ShowHeaders=1;id=} .
+                           $Ticket->id.qq{">} .
+                           loc("Full headers") .
+                           qq{</a>};
+        }
+    }
 </%perl>
 <& /Widgets/TitleBoxStart, title => $title, titleright => $titleright &>
 % }


More information about the Rt-commit mailing list