[open-ils-commits] ***SPAM*** [GIT] Evergreen ILS branch master updated. 8ca1ea0a1abb6bf391135801cf1f808b331fb4cd

Evergreen Git git at git.evergreen-ils.org
Wed Feb 5 22:42:11 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, master has been updated
       via  8ca1ea0a1abb6bf391135801cf1f808b331fb4cd (commit)
      from  237b7e71654eb90d33d98e6bbe3e89b4913de19e (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 8ca1ea0a1abb6bf391135801cf1f808b331fb4cd
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 0663d86..46bce63 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