[open-ils-commits] ***SPAM*** [GIT] Evergreen ILS branch rel_2_4 updated. 657658c642b21b0497d44fa9a087195b8dc5b06f
Evergreen Git
git at git.evergreen-ils.org
Wed Feb 5 22:42:50 EST 2014
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, rel_2_4 has been updated
via 657658c642b21b0497d44fa9a087195b8dc5b06f (commit)
from 1a37aefeb0fc58ddc8ec4e4835bd4871c4c5bd7e (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 657658c642b21b0497d44fa9a087195b8dc5b06f
Author: Ben Shum <bshum at biblio.org>
Date: Tue Jan 21 13:52:49 2014 -0500
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 <bshum at biblio.org>
Signed-off-by: Chris Sharp <csharp at georgialibraries.org>
Signed-off-by: Ben Shum <bshum at biblio.org>
diff --git a/Open-ILS/src/templates/opac/myopac/prefs_notify.tt2 b/Open-ILS/src/templates/opac/myopac/prefs_notify.tt2
index c0c1fba..d573b7a 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 @@
</tbody>
</table>
+ [% IF ctx.opt_in_settings.size > 0 %]
<div class='user_opt_in_settings'>
- [% IF ctx.opt_in_settings.size == 0 %]
- <strong>[% l('No notification preferences are configured') %]</strong>
- [% ELSE %]
<table>
<thead><tr>
<th>[% l('Notification Type') %]</th>
@@ -101,8 +99,8 @@
[% END %]
</tbody>
</table>
- [% END %]
</div>
+ [% END %]
<input type='submit' value="[% l('Save') %]" alt="[% l('Save') %]" class="opac-button" />
</form>
[% END %]
-----------------------------------------------------------------------
Summary of changes:
.../src/templates/opac/myopac/prefs_notify.tt2 | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
hooks/post-receive
--
Evergreen ILS
More information about the open-ils-commits
mailing list