From: Galen Charlton Date: Tue, 31 Mar 2015 21:03:14 +0000 (+0000) Subject: LP#1442260: include unread message count in page title X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=a4468a5a39092cb1ef25da79445f6c188ad63085;p=evergreen%2Fpines.git LP#1442260: include unread message count in page title If a patron is logged in and has at least one unread message, the count of unread messages is prepended to the page title for all TPAC pages. Signed-off-by: Galen Charlton Signed-off-by: Kathy Lussier Signed-off-by: Ben Shum --- diff --git a/Open-ILS/src/templates/opac/parts/base.tt2 b/Open-ILS/src/templates/opac/parts/base.tt2 index 540525d4a9..8c24507171 100644 --- a/Open-ILS/src/templates/opac/parts/base.tt2 +++ b/Open-ILS/src/templates/opac/parts/base.tt2 @@ -14,7 +14,11 @@ [%- libname = ctx.get_aou(ctx.search_ou).name; libname = libname | html; libsname = ctx.get_aou(ctx.search_ou).shortname; %] - [% l('[_1] - [_2]', ctx.page_title, libname) %] + [%- IF ctx.user_stats.messages.unread; + l('([_1])', ctx.user_stats.messages.unread); + END; + -%] + [% l('[_1] - [_2]', ctx.page_title, libname) %] [%-# Hook for page-specific metadata such as %]