[open-ils-commits] ***SPAM*** [GIT] Evergreen ILS branch rel_2_5 updated. 100e76adcad2733534c9435218eafffca95f8341

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_5 has been updated
       via  100e76adcad2733534c9435218eafffca95f8341 (commit)
      from  fd3703addeea60323487c7281e380eff85cb04d9 (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 100e76adcad2733534c9435218eafffca95f8341
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