[Rt-commit] r12859 - in rt/branches/3.8-TESTING: . etc share/html/Elements

falcone at bestpractical.com falcone at bestpractical.com
Tue Jun 3 16:31:18 EDT 2008


Author: falcone
Date: Tue Jun  3 16:31:17 2008
New Revision: 12859

Modified:
   rt/branches/3.8-TESTING/   (props changed)
   rt/branches/3.8-TESTING/etc/RT_Config.pm.in
   rt/branches/3.8-TESTING/share/html/Elements/MyReminders
   rt/branches/3.8-TESTING/share/html/Ticket/Elements/ShowSummary
   rt/branches/3.8-TESTING/share/html/Ticket/Elements/Tabs

Log:
 r33731 at ketch:  falcone | 2008-06-03 16:29:57 -0400
 * add an option to disable/hide Reminders


Modified: rt/branches/3.8-TESTING/etc/RT_Config.pm.in
==============================================================================
--- rt/branches/3.8-TESTING/etc/RT_Config.pm.in	(original)
+++ rt/branches/3.8-TESTING/etc/RT_Config.pm.in	Tue Jun  3 16:31:17 2008
@@ -786,6 +786,11 @@
 
 Set($EnableTicketUpdateStatus,1);
 
+# Reminders
+# Hide links/portlets related to Reminders by setting this to 0
+
+Set($EnableReminders,1);
+
 # {{{ Deprecated options
 
 # $AlwaysUseBase64 - Encode blobs as base64 in DB (?)

Modified: rt/branches/3.8-TESTING/share/html/Elements/MyReminders
==============================================================================
--- rt/branches/3.8-TESTING/share/html/Elements/MyReminders	(original)
+++ rt/branches/3.8-TESTING/share/html/Elements/MyReminders	Tue Jun  3 16:31:17 2008
@@ -66,6 +66,7 @@
 </&>
 
 <%init>
+return unless RT->Config->Get('EnableReminders');
 my $reminders = RT::Tickets->new($session{'CurrentUser'});
 $reminders->FromSQL('(Owner = "Nobody" OR Owner = "'.$session{'CurrentUser'}->Name.'")' .
     ' AND Type = "reminder" AND (Status = "new" OR Status = "open") AND Due > "1970-01-01"'); 

Modified: rt/branches/3.8-TESTING/share/html/Ticket/Elements/ShowSummary
==============================================================================
--- rt/branches/3.8-TESTING/share/html/Ticket/Elements/ShowSummary	(original)
+++ rt/branches/3.8-TESTING/share/html/Ticket/Elements/ShowSummary	Tue Jun  3 16:31:17 2008
@@ -74,6 +74,7 @@
 % $m->callback( %ARGS, CallbackName => 'LeftColumn' );
 	</td>
 	<td valign="top" width="50%" class="boxcontainer">
+% if ( RT->Config->Get('EnableReminders') ) {
 	  <&|/Widgets/TitleBox, title => loc("Reminders"),
 		title_href => RT->Config->Get('WebPath')."/Ticket/Reminders.html?id=".$Ticket->Id, 
 		class => 'ticket-info-reminders' &>
@@ -88,6 +89,7 @@
             </tr>
             </table>
 	  </&>
+% }
 	  <&| /Widgets/TitleBox, title => loc("Dates"),
 		title_href => RT->Config->Get('WebPath')."/Ticket/ModifyDates.html?id=".$Ticket->Id, 
 		class => 'ticket-info-dates' &>

Modified: rt/branches/3.8-TESTING/share/html/Ticket/Elements/Tabs
==============================================================================
--- rt/branches/3.8-TESTING/share/html/Ticket/Elements/Tabs	(original)
+++ rt/branches/3.8-TESTING/share/html/Ticket/Elements/Tabs	Tue Jun  3 16:31:17 2008
@@ -121,15 +121,18 @@
       { title => loc('People'), path => "Ticket/ModifyPeople.html?id=" . $id, },
     _E => { title => loc('Links'),
             path  => "Ticket/ModifyLinks.html?id=" . $id, },
-    _F => { title => loc('Reminders'),
-            path  => "Ticket/Reminders.html?id=" . $id,
-            separator => 1, },
     _X => { title => loc('Jumbo'),
             path  => "Ticket/ModifyAll.html?id=" . $id, 
  },
 
 };
 
+if (RT->Config->Get('EnableReminders')) {
+    $ticket_page_tabs->{_F} = { title => loc('Reminders'),
+                                path  => "Ticket/Reminders.html?id=" . $id,
+                                separator => 1, };
+}
+
 foreach my $tab ( sort keys %{$ticket_page_tabs} ) {
     if ( $ticket_page_tabs->{$tab}->{'path'} eq $current_tab ) {
         $ticket_page_tabs->{$tab}->{"subtabs"}        = $subtabs;


More information about the Rt-commit mailing list