[open-ils-commits] [GIT] Evergreen ILS branch master updated. 8081334e304d2fdcdd6126c60eceeebeb650495c
Evergreen Git
git at git.evergreen-ils.org
Fri Oct 28 10:28:19 EDT 2011
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".
The branch, master has been updated
via 8081334e304d2fdcdd6126c60eceeebeb650495c (commit)
from ef1103f2f9a075ef55e35fd9e4d9e662c56b6104 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 8081334e304d2fdcdd6126c60eceeebeb650495c
Author: Bill Erickson <berick at esilibrary.com>
Date: Thu Oct 27 15:10:23 2011 -0400
Tpac; style due-date red/error for overdue items
In the patrons items out list, if an item is overdue, style the due date as
"error" (i.e. bold red).
Signed-off-by: Bill Erickson <berick at esilibrary.com>
diff --git a/Open-ILS/src/templates/opac/myopac/circs.tt2 b/Open-ILS/src/templates/opac/myopac/circs.tt2
index c6312e3..c0f5770 100644
--- a/Open-ILS/src/templates/opac/myopac/circs.tt2
+++ b/Open-ILS/src/templates/opac/myopac/circs.tt2
@@ -113,9 +113,12 @@
<td width="8%" name="renewals" align="center">
[% circ.circ.renewal_remaining %]
</td>
- <td width="13%" style="padding-left:5px;"
- name="due_date">
- [% date.format(ctx.parse_datetime(circ.circ.due_date),DATE_FORMAT) %]
+ [%
+ due_date = ctx.parse_datetime(circ.circ.due_date);
+ due_class = (date.now > date.format(due_date, '%s')) ? 'error' : '';
+ %]
+ <td width="13%" style="padding-left:5px;" name="due_date" class='[% due_class %]'>
+ [% date.format(due_date, DATE_FORMAT) %]
</td>
<td width="16%" name="barcode">
[% circ.circ.target_copy.barcode | html %]
-----------------------------------------------------------------------
Summary of changes:
Open-ILS/src/templates/opac/myopac/circs.tt2 | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
hooks/post-receive
--
Evergreen ILS
More information about the open-ils-commits
mailing list