[open-ils-commits] [GIT] Evergreen ILS branch master updated. 6f658be6afc894f40d096f191374ad81f909a05d

Evergreen Git git at git.evergreen-ils.org
Thu Apr 9 21:56:07 EDT 2015


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  6f658be6afc894f40d096f191374ad81f909a05d (commit)
      from  a4468a5a39092cb1ef25da79445f6c188ad63085 (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 6f658be6afc894f40d096f191374ad81f909a05d
Author: Galen Charlton <gmc at esilibrary.com>
Date:   Wed Apr 8 22:42:26 2015 +0000

    LP#1442262: move patron messages link to dashboard button bar
    
    Also implement a Facebook-style display of the unread
    messages count.
    
    Signed-off-by: Galen Charlton <gmc at esilibrary.com>
    Signed-off-by: Kathy Lussier <klussier at masslnc.org>
    Signed-off-by: Ben Shum <bshum at biblio.org>

diff --git a/Open-ILS/src/templates/opac/css/style.css.tt2 b/Open-ILS/src/templates/opac/css/style.css.tt2
index 9a2d2f6..1b50d0f 100644
--- a/Open-ILS/src/templates/opac/css/style.css.tt2
+++ b/Open-ILS/src/templates/opac/css/style.css.tt2
@@ -136,7 +136,23 @@ is too low for WCAG compliance.  Use "text_attention"
 for now until a better color is picked - if needed.
 */
 #dash_fines { color: [% css_colors.text_attention %]; }
-#dash_messages { color: [% css_colors.text_attention %]; }
+
+#dash_wrapper #dash_user_message_button_container {
+    display: inline;
+    padding: 0;
+}
+#dash_wrapper #unread_message_count_floater {
+    position: absolute;
+    background-color: [% css_colors.text_alert %];
+    padding-left: 0.2em;
+    padding-right: 0.2em;
+    display: inline-block;
+    font-size: 95%;
+    border-radius: 0;
+    z-index: 2;
+    margin-top: 0.2em;
+    margin-left: -1.5em;
+}
 
 #header-wrap {
     background: linear-gradient([% css_colors.primary %], [% css_colors.primary_fade %]);
diff --git a/Open-ILS/src/templates/opac/parts/topnav.tt2 b/Open-ILS/src/templates/opac/parts/topnav.tt2
index e2a961c..89d57c0 100644
--- a/Open-ILS/src/templates/opac/parts/topnav.tt2
+++ b/Open-ILS/src/templates/opac/parts/topnav.tt2
@@ -23,6 +23,17 @@
                 </span>
                 <span class="dash_divider">|</span>
                 <span class="dash_account_buttons">
+                <div id="dash_user_message_button_container">
+                    <a href="[% mkurl(ctx.opac_root _ '/myopac/messages') %]" class="opac-button">
+                        [% l('Messages') %]
+                    </a>
+                    [% IF ctx.user_stats.messages.unread %]
+                        <div id="unread_message_count_floater">
+                            [%- ctx.user_stats.messages.unread -%]
+                            <span class="sr-only">[% l('unread') %]</a>
+                        </div>
+                    [% END %]
+                </div>
                 <a href="[% mkurl(ctx.opac_root _ '/myopac/main') %]" 
                     class="opac-button">[% l('My Account') %]</a>
                 <a href="[% mkurl(ctx.opac_root _ '/myopac/lists') %]" 
@@ -55,12 +66,6 @@
                         %]"><span id="dash_fines">[% money(ctx.user_stats.fines.balance_owed)
                         %]</span> [% l("Fines") %]</a>
                 </span>
-                <span class="dash_divider">|</span>
-                <span class="dash-align">
-                    <a class="dash-link" href="[% mkurl(ctx.opac_root _ '/myopac/messages')
-                        %]"><span id="dash_messages">[% ctx.user_stats.messages.unread
-                        %]</span> [% l("Unread Messages") %]</a>
-                </span>
             </div>
         </div>
         [% END %]

-----------------------------------------------------------------------

Summary of changes:
 Open-ILS/src/templates/opac/css/style.css.tt2 |   18 +++++++++++++++++-
 Open-ILS/src/templates/opac/parts/topnav.tt2  |   17 +++++++++++------
 2 files changed, 28 insertions(+), 7 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list