bug 3222: fix display of message queue
authorGalen Charlton <galen.charlton@liblime.com>
Wed, 20 May 2009 16:35:58 +0000 (11:35 -0500)
committerGalen Charlton <galen.charlton@liblime.com>
Fri, 22 May 2009 18:21:02 +0000 (13:21 -0500)
If no messages have been sent to the patron, display
a notice that that effect in the staff patron messaging
tab rather than just a blank page.

[LL bug 452]

Signed-off-by: Daniel Sweeney <daniel.sweeney@liblime.com>
Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
koha-tmpl/intranet-tmpl/prog/en/modules/members/messaging.tmpl

index 1b8b727..75bec95 100644 (file)
    </div>
 <!-- TMPL_ELSE -->
 
-<!-- TMPL_IF NAME="message_queue" -->
 <table>
   <caption>Message Queue</caption>
   <tr><th>Type</th><th>Subject</th><th>Status</th><th>Time Prepared</th></tr>
-<!-- TMPL_LOOP name="message_queue" -->
-  <tr><td><!-- TMPL_VAR NAME="message_transport_type" --></td><td><!-- TMPL_VAR NAME="subject" --></td><td><!-- TMPL_VAR NAME="status" --></td><td><!-- TMPL_VAR NAME="time_queued" --></td></tr>
-<!-- /TMPL_LOOP -->
-</table>
+<!-- TMPL_IF NAME="message_queue" -->
+  <!-- TMPL_LOOP name="message_queue" -->
+    <tr><td><!-- TMPL_VAR NAME="message_transport_type" --></td><td><!-- TMPL_VAR NAME="subject" --></td><td><!-- TMPL_VAR NAME="status" --></td><td><!-- TMPL_VAR NAME="time_queued" --></td></tr>
+  <!-- /TMPL_LOOP -->
+<!-- TMPL_ELSE -->
+  <tr><td colspan="4">There is no record of any messages that have been sent to this patron.</td></tr>
 <!-- /TMPL_IF -->
+</table>
 
 </div>