bug 3222: fix display of message queue

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>
This commit is contained in:
Galen Charlton 2009-05-20 11:35:58 -05:00
parent d036fd463d
commit 20b2bbba5e

View file

@ -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" -->
<!-- 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 -->
</table>
<!-- /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>