From: Galen Charlton <[email protected]> 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 <[email protected]> --- .../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 _______________________________________________ Koha-patches mailing list [email protected] http://lists.koha.org/mailman/listinfo/koha-patches
