[rt-devel] [PATCH] Reduce Clutter 3.0.9
Tammy Dugan
tdugan at progeny.com
Thu Feb 19 14:08:20 EST 2004
Attached is the patch applied to 3.0.9.
This makes a BIG difference. It really helps the user see the data that
matters.
* De-clutterify the details of a ticket by erasing irrelevent data
like "Not set" for unset fields.
-------------- next part --------------
Index: misc/rt-enhancements/branches/3-0-9/html/Ticket/Elements/ShowDates
===================================================================
--- misc/rt-enhancements/branches/3-0-9/html/Ticket/Elements/ShowDates (revision 14774)
+++ misc/rt-enhancements/branches/3-0-9/html/Ticket/Elements/ShowDates (revision 14775)
@@ -29,23 +29,43 @@
</TR>
<TR>
<TD class="label"><&|/l&>Starts</&>:</TD>
- <TD class="value"><% $Ticket->StartsObj->AsString %></TD>
+ <TD class="value">
+% if($Ticket->StartsObj->AsString ne 'Not set'){
+ <% $Ticket->StartsObj->AsString %>
+% }
+ </TD>
</TR>
<TR>
<TD class="label"><&|/l&>Started</&>:</TD>
- <TD class="value"><% $Ticket->StartedObj->AsString %></TD>
+ <TD class="value">
+% if($Ticket->StartedObj->AsString ne 'Not set'){
+ <% $Ticket->StartedObj->AsString %>
+% }
+ </TD>
</TR>
<TR>
<TD class="label"><a href="Display.html?id=<%$Ticket->id%>&Action=SetTold"><&|/l&>Last Contact</&></a>:</TD>
- <TD class="value"><% $Ticket->ToldObj->AsString %></TD>
+ <TD class="value">
+% if($Ticket->ToldObj->AsString ne 'Not set'){
+ <% $Ticket->ToldObj->AsString %>
+% }
+ </TD>
</TR>
<TR>
<TD class="label"><&|/l&>Due</&>:</TD>
- <TD class="value"><% $Ticket->DueObj->AsString %></TD>
+ <TD class="value">
+% if($Ticket->DueObj->AsString ne 'Not set'){
+ <% $Ticket->DueObj->AsString %>
+% }
+ </TD>
</TR>
<TR>
<TD class="label"><&|/l&>Closed</&>:</TD>
- <TD class="value"><% $Ticket->ResolvedObj->AsString %></TD>
+ <TD class="value">
+% if($Ticket->ResolvedObj->AsString ne 'Not set'){
+ <% $Ticket->ResolvedObj->AsString %>
+% }
+ </TD>
</TR>
<TR>
<TD class="label"><&|/l&>Updated</&>:</TD>
Index: misc/rt-enhancements/branches/3-0-9/html/Ticket/Elements/ShowBasics
===================================================================
--- misc/rt-enhancements/branches/3-0-9/html/Ticket/Elements/ShowBasics (revision 14774)
+++ misc/rt-enhancements/branches/3-0-9/html/Ticket/Elements/ShowBasics (revision 14775)
@@ -32,11 +32,19 @@
</tr>
<tr>
<td class="label"><&|/l&>Worked</&>:</td>
- <td class="value"><&|/l, $TimeWorked &>[_1] min</&></td>
+ <td class="value">
+% if($TimeWorked ne '0'){
+ <&|/l, $TimeWorked &>[_1] min</&>
+% }
+ </td>
</tr>
<tr>
<td class="label"><&|/l&>Priority</&>:</td>
- <td class="value"><%$Ticket->Priority%>/<%$Ticket->FinalPriority %></td>
+ <td class="value">
+% if($Ticket->Priority ne '0'){
+ <%$Ticket->Priority%>/<%$Ticket->FinalPriority %>
+% }
+ </td>
</tr>
<tr>
<td class="label"><&|/l&>Queue</&>:</td>
More information about the Rt-devel
mailing list