From a4468a5a39092cb1ef25da79445f6c188ad63085 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Tue, 31 Mar 2015 21:03:14 +0000 Subject: [PATCH] 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 --- Open-ILS/src/templates/opac/parts/base.tt2 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 %] -- 2.43.2