From ed9978e785581a620bdb5e62334f6c6805e7d00c Mon Sep 17 00:00:00 2001 From: Ben Shum Date: Tue, 21 Jan 2014 13:52:49 -0500 Subject: [PATCH] LP1271218 - clarify how opt-in user notifications are shown in my account As reported in LP127128, end users may not need to be shown the message that "No notification preferences are configured" when in fact this message is only displayed when the user opt-in notification settings are not configured. So, alter this to only show the table and div when there are settings to be configured and otherwise show nothing. Signed-off-by: Ben Shum --- Open-ILS/src/templates/opac/myopac/prefs_notify.tt2 | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Open-ILS/src/templates/opac/myopac/prefs_notify.tt2 b/Open-ILS/src/templates/opac/myopac/prefs_notify.tt2 index 0663d86346..46bce63ee8 100644 --- a/Open-ILS/src/templates/opac/myopac/prefs_notify.tt2 +++ b/Open-ILS/src/templates/opac/myopac/prefs_notify.tt2 @@ -79,10 +79,8 @@ + [% IF ctx.opt_in_settings.size > 0 %]
- [% IF ctx.opt_in_settings.size == 0 %] - [% l('No notification preferences are configured') %] - [% ELSE %] @@ -101,8 +99,8 @@ [% END %]
[% l('Notification Type') %]
- [% END %]
+ [% END %] [% END %] -- 2.11.0