[rt-users] Re: Patch to make new/open/stalled tallies on main page links to associated queue/query
Alexander Dupuy
dupuy at sysd.com
Fri Aug 30 14:46:46 EDT 2002
> This is a patch to WebRT/html/Elements/Quicksearch from rt-2.0.13.
>
> [root at rt Elements]# rcsdiff -r1.1 -r 1.2 Quicksearch
> rcsdiff: RCS/1.2,v: No such file or directory
> ===================================================================
> RCS file: RCS/Quicksearch,v
> retrieving revision 1.1
> retrieving revision 1.2
> diff -r1.1 -r1.2
> 29,31c29,31
> < <TD><%$new%></TD>
> < <TD><%$open%></TD>
> < <TD><%$stalled%></TD>
> ---
> ><TD><A HREF="<% $RT::WebPath%>/Search/Listing.html?ValueOfStatus=new&StatusOp=%3D&QueueOp=%3D&ValueOfQueue=<%$queue->Id%>&RowsPerPage=50&NewSearch=1"><%$new%></a></TD>
> ><TD><A HREF="<% $RT::WebPath%>/Search/Listing.html?ValueOfStatus=open&StatusOp=%3D&QueueOp=%3D&ValueOfQueue=<%$queue->Id%>&RowsPerPage=50&NewSearch=1"><%$open%></a></TD>
> ><TD><A HREF="<% $RT::WebPath%>/Search/Listing.html?ValueOfStatus=stalled&StatusOp=%3D&QueueOp=%3D&ValueOfQueue=<%$queue->Id%>&RowsPerPage=50&NewSearch=1"><%$stalled%></a></TD>
A nice feature that I was thinking of doing for a long time but never
got around to. Here's an additional patch (also to 2.0.13) that makes
the New/Open/Stalled column headers links to the corresponding searches:
===================================================================
6,8c6,11
< <th align=left><font size=-1>New</font></th>
< <th align=left><font size=-1>Open</font></th>
< <th align=left><font size=-1>Stalled</font></th>
---
> <th align=left><font size=-1>
> <A HREF="<%
$RT::WebPath%>/Search/Listing.html?ValueOfStatus=new&StatusOp=%3D&RowsPerPage=50&NewSearch=1">New</a></font></th>
> <th align=left><font size=-1>
> <A HREF="<%
$RT::WebPath%>/Search/Listing.html?ValueOfStatus=open&StatusOp=%3D&RowsPerPage=50&NewSearch=1">Open</a></font></th>
> <th align=left><font size=-1>
> <A HREF="<%
$RT::WebPath%>/Search/Listing.html?ValueOfStatus=stalled&StatusOp=%3D&RowsPerPage=50&NewSearch=1">Stalled</a></font></th>
This patch should apply whether or not you have already applied
Michael's (since it comes earlier in the file).
@alex
--
mailto:dupuy at sysd.com
More information about the rt-users
mailing list