[Rt-commit] r5322 - in rtir/branches/1.9-EXPERIMENTAL: html/RTIR/Elements

ruz at bestpractical.com ruz at bestpractical.com
Thu Jun 1 19:35:41 EDT 2006


Author: ruz
Date: Thu Jun  1 19:35:41 2006
New Revision: 5322

Modified:
   rtir/branches/1.9-EXPERIMENTAL/   (props changed)
   rtir/branches/1.9-EXPERIMENTAL/html/RTIR/Elements/ShowIncidents

Log:
 r1441 at cubic-pc:  cubic | 2006-06-02 03:01:31 +0400
 * show list of incs with <ul>-<li>


Modified: rtir/branches/1.9-EXPERIMENTAL/html/RTIR/Elements/ShowIncidents
==============================================================================
--- rtir/branches/1.9-EXPERIMENTAL/html/RTIR/Elements/ShowIncidents	(original)
+++ rtir/branches/1.9-EXPERIMENTAL/html/RTIR/Elements/ShowIncidents	Thu Jun  1 19:35:41 2006
@@ -22,21 +22,26 @@
 %# 
 %# 
 %# END LICENSE BLOCK
-%  while (my $incident = $incidents->Next) {
-%   $count++;
+% while ( my $incident = $incidents->Next ) {
+% $m->out('<ul>') unless $count;
+<li>
 % if ( $show_unlink ) {
 <a href="<% RT->Config->Get('WebPath') %>/RTIR/Display.html?id=<% $Ticket->Id %>&DeleteLink--MemberOf-<% $incident->Id %>=1">[<% loc('Unlink') %>]</a>
 % }
-<a href="<% RT->Config->Get('WebPath') %>/RTIR/Display.html?id=<% $incident->Id %>"><% $incident->Id %>: <% $incident->Subject %></a> <i>(<& /RTIR/Elements/ShowRTIRField, Ticket => $incident, Name => 'State' &>)</i>
-% if ($depth < 8) {
+<a href="<% RT->Config->Get('WebPath') %>/RTIR/Display.html?id=<% $incident->Id %>"><% $incident->Id %>: <% $incident->Subject %></a><i>(<& /RTIR/Elements/ShowRTIRField, Ticket => $incident, Name => 'State' &>)</i>
+% if ( $depth < 8 ) {
 <& /RTIR/Elements/ShowIncidents, Ticket => $incident, depth => ($depth+1) &>
-%   }
 % }
-% if ($depth == 1 and $count == 0) {
+% $count++;
+</li>
+% }
+% $m->out('</ul>') if $count;
+
+% if ( $depth == 1 and $count == 0 ) {
 <i><% loc('(no Incidents)') %></i>
 % }
 
-% if ($depth == 1) {
+% if ( $depth == 1 ) {
 %   unless ( $action ) {
 <b><a href="<%RT->Config->Get('WebPath')%>/RTIR/Incident/LinkToIncident.html?id=<% $Ticket->Id %>">[Link]</a></b>
 <b><a href="<%RT->Config->Get('WebPath')%>/RTIR/Create.html?Child=<% $Ticket->Id %>&Queue=Incidents">[New]</a></b>


More information about the Rt-commit mailing list