[Koha-patches] [PATCH 10/10] bug 3222: fix display of message queue

Daniel Sweeney daniel.sweeney at liblime.com
Wed May 20 18:35:58 CEST 2009


From: Galen Charlton <galen.charlton at liblime.com>

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 at liblime.com>
---
 .../prog/en/modules/members/messaging.tmpl         |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/messaging.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/members/messaging.tmpl
index 1b8b727..75bec95 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/messaging.tmpl
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/messaging.tmpl
@@ -42,15 +42,17 @@
    </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>
 
-- 
1.5.6.5




More information about the Koha-patches mailing list