[Rt-commit] r4100 - in rtir/branches/1.9-EXPERIMENTAL: . html/RTIR/Search/Elements

ruz at bestpractical.com ruz at bestpractical.com
Tue Nov 15 23:42:04 EST 2005


Author: ruz
Date: Tue Nov 15 23:42:03 2005
New Revision: 4100

Modified:
   rtir/branches/1.9-EXPERIMENTAL/   (props changed)
   rtir/branches/1.9-EXPERIMENTAL/html/RTIR/Search/Elements/ShowResults
Log:
 r276 at cubic-pc:  cubic | 2005-11-16 07:46:04 +0300
  r267 at cubic-pc:  cubic | 2005-11-15 04:53:14 +0300
  * better cover for ShowNavigation in search results
  * show bulk reject link only if navigation is turned on
 


Modified: rtir/branches/1.9-EXPERIMENTAL/html/RTIR/Search/Elements/ShowResults
==============================================================================
--- rtir/branches/1.9-EXPERIMENTAL/html/RTIR/Search/Elements/ShowResults	(original)
+++ rtir/branches/1.9-EXPERIMENTAL/html/RTIR/Search/Elements/ShowResults	Tue Nov 15 23:42:03 2005
@@ -8,17 +8,19 @@
     Page => $Page,
     Format => $Format,
     BaseURL => $BaseURL,
+    ShowNavigation => $ShowNavigation,
+    AllowSorting => $AllowSorting,
 &>
 
-<div align="right">
-
-% if ($Queue eq 'Incident Reports') {
+% if ( $Queue eq 'Incident Reports' && $ShowNavigation ) {
 %# this would do well as a Callback
-<a href="<%$RT::WebPath%>/RTIR/Report/BulkReject.html<%$QueryString%>&Queue=<%$Queue%>"><&|/l&>Bulk Reject</&></a><br>
-% }
 
+<div align="right">
+<a href="<%$RT::WebPath%>/RTIR/Report/BulkReject.html<%$QueryString%>&Queue=<%$Queue%>"><&|/l&>Bulk Reject</&></a><br>
 </div>
 
+% }
+
 <%INIT>
 $session{'i'}++;
 $session{'tickets'} = RT::Tickets->new($session{'CurrentUser'})  unless ($session{'tickets'});


More information about the Rt-commit mailing list