[Rt-commit] r10373 - rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Incident

ruz at bestpractical.com ruz at bestpractical.com
Wed Jan 16 12:23:33 EST 2008


Author: ruz
Date: Wed Jan 16 12:23:33 2008
New Revision: 10373

Modified:
   rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Incident/Display.html

Log:
* replace duplicated code with new comp .../Incident/Elements/ShowChildren

Modified: rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Incident/Display.html
==============================================================================
--- rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Incident/Display.html	(original)
+++ rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Incident/Display.html	Wed Jan 16 12:23:33 2008
@@ -123,77 +123,25 @@
 
 </td><td valign="top">
 
-<&| /Widgets/TitleBox,
-    title => loc('Incident Reports'),
-    title_href => RT->Config->Get('WebPath') ."/RTIR/Incident/ShowChildren.html?Queue=Incident%20Reports&id=".$id,
-    titleright => '',
-    title_class=> 'inverse', color=> "#336633",
+<& /RTIR/Incident/Elements/ShowChildren,
+    IncidentObj => $TicketObj, 
+    Queue       => 'Incident Reports',
 &>
 
-% if ($TicketObj->CurrentUserHasRight('ModifyTicket')) {
-    <table width="100%"><tr><td align="right"><font size="-1">
-        | <a href="<%RT->Config->Get('WebPath')%>/RTIR/Create.html?Incident=<%$id%>&Queue=Incident%20Reports"><%loc('New')%></a>
-        | <a href="<%RT->Config->Get('WebPath')%>/RTIR/Incident/LinkChildren.html?id=<%$id%>&Queue=Incident%20Reports"><%loc("Link")%></a> |
-    </font></td></tr></table>
-% }
-
-    <& /RTIR/Elements/ShowChildren, 
-            Ticket    => $TicketObj, 
-            Queue     => 'Incident Reports',
-            Rows      => 8,
-            FullList  => RT->Config->Get('WebPath')."/RTIR/Incident/ShowChildren.html?Queue=Incident%20Reports&id=".$id,
-    &>
-</&>
-
 </td></tr><tr><td valign="top" width="50%">
 
-<&| /Widgets/TitleBox, title => loc('Investigations'), 
-    title_href => RT->Config->Get('WebPath') ."/RTIR/Incident/ShowChildren.html?Queue=Investigations&id=".$id, 
-    title_class=> 'inverse',  
-    titleright => '', color=> "#336633" &>
-
-% if ($TicketObj->CurrentUserHasRight('ModifyTicket')) {
-    <table width="100%"><tr><td align="right"><font size="-1">
-        | <a href="<%RT->Config->Get('WebPath')%>/RTIR/Create.html?Incident=<%$id%>&Queue=Investigations"><%loc('Launch')%></a> 
-        | <a href="<%RT->Config->Get('WebPath')%>/RTIR/Incident/LinkChildren.html?id=<%$id%>&Queue=Investigations"><%loc("Link")%></a> |
-    </font></td></tr></table>
-% }
-
-<& /RTIR/Elements/ShowChildren,
-    Ticket => $TicketObj, 
-    Queue => 'Investigations',
-    Rows => 8,
-    FullList => RT->Config->Get('WebPath')."/RTIR/Incident/ShowChildren.html?Queue=Investigations&id=".$id,
+<& /RTIR/Incident/Elements/ShowChildren,
+    IncidentObj => $TicketObj, 
+    Queue       => 'Investigations',
 &>
 
-</&>
-
 </td><td valign="top" width="50%">
 
-% unless ( RT->Config->Get('RTIR_DisableBlocksQueue') ) {
-<&| /Widgets/TitleBox, title => loc('Blocks'),
-    title_href => RT->Config->Get('WebPath') ."/RTIR/Incident/ShowChildren.html?Queue=Blocks&id=".$id,
-    title_class=> 'inverse',
-    titleright => '', color=> "#336633",
+<& /RTIR/Incident/Elements/ShowChildren,
+    IncidentObj => $TicketObj, 
+    Queue       => 'Blocks',
 &>
 
-% if ($TicketObj->CurrentUserHasRight('ModifyTicket')) {
-    <table width="100%"><tr><td align="right"><font size="-1">
-        | <a href="<%RT->Config->Get('WebPath')%>/RTIR/Create.html?Incident=<%$id%>&Queue=Blocks"><%loc('New')%></a> 
-        | <a href="<%RT->Config->Get('WebPath')%>/RTIR/Incident/LinkChildren.html?id=<%$id%>&Queue=Blocks"><%loc("Link")%></a> |
-    </font></td></tr></table>
-% }
-
-<& /RTIR/Elements/ShowChildren, 
-    Ticket   => $TicketObj, 
-    Queue    => 'Blocks',
-    Rows     => 8,
-    FullList => RT->Config->Get('WebPath')."/RTIR/Incident/ShowChildren.html?Queue=Blocks&id=".$id,
-&>
-
-</&>
-% }
-
 </td></tr><tr><td valign="top" width="50%">
 
 <&| /Widgets/TitleBox, title => loc("Dates"),


More information about the Rt-commit mailing list