[Rt-commit] r8678 - in rtir/branches/2.3-EXPERIMENTAL: . html/RTIR/Incident

sartak at bestpractical.com sartak at bestpractical.com
Tue Aug 21 16:23:02 EDT 2007


Author: sartak
Date: Tue Aug 21 16:23:00 2007
New Revision: 8678

Modified:
   rtir/branches/2.3-EXPERIMENTAL/   (props changed)
   rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Incident/Reply.html
   rtir/branches/2.3-EXPERIMENTAL/html/RTIR/NoAuth/webrtir.css

Log:
 r37890 at gorgoroth:  sartak | 2007-08-21 16:22:48 -0400
 Add a big warning if a reply will go nowhere


Modified: rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Incident/Reply.html
==============================================================================
--- rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Incident/Reply.html	(original)
+++ rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Incident/Reply.html	Tue Aug 21 16:23:00 2007
@@ -45,6 +45,8 @@
 <input type="hidden" name="All" value="<% $All %>" />
 <input type="hidden" name="Query" value="<% $Query %>" />
 
+% my $recipients = 0;
+
 <h2><&|/l&>Reporters</&></h2>
 <& /RTIR/Search/Elements/ShowResults,
     Queue         => 'Incident Reports',
@@ -58,7 +60,7 @@
     OrderBy       => $OrderBy,
     Order         => $Order,
 &>
-
+% $recipients += $session{'tickets'}->CountAll;
 % if ( $All ) {
 <h2><&|/l&>Investigation Correspondents</&></h2>
 <& /RTIR/Search/Elements/ShowResults,
@@ -73,6 +75,7 @@
     OrderBy       => $OrderBy,
     Order         => $Order,
 &>
+% $recipients += $session{'tickets'}->CountAll;
 % unless( RT->Config->Get('RTIR_DisableBlocksQueue') ) {
 <h2><&|/l&>Blocks Correspondents</&></h2>
 <& /RTIR/Search/Elements/ShowResults,
@@ -87,9 +90,14 @@
     OrderBy       => $OrderBy,
     Order         => $Order,
 &>
+% $recipients += $session{'tickets'}->CountAll;
 % }
 % }
 
+% if ($recipients == 0) {
+<h2 class="no-recipients">Warning: no recipients!</h2>
+% }
+
 <& Elements/ReplyForm, TicketObj => $IncidentObj, Status => $Status &>
 
 <& /Elements/Submit, Name => "SubmitTicket", Caption => $SubmitCaption, Label => $SubmitLabel &>

Modified: rtir/branches/2.3-EXPERIMENTAL/html/RTIR/NoAuth/webrtir.css
==============================================================================
--- rtir/branches/2.3-EXPERIMENTAL/html/RTIR/NoAuth/webrtir.css	(original)
+++ rtir/branches/2.3-EXPERIMENTAL/html/RTIR/NoAuth/webrtir.css	Tue Aug 21 16:23:00 2007
@@ -36,7 +36,7 @@
     margin: 1em;
 }    
 
-div.locked {
+.locked, .no-recipients {
     background: #ffcccc; 
     width: 80%;
     align: center;


More information about the Rt-commit mailing list