[open-ils-commits] [GIT] Evergreen ILS branch rel_2_8 updated. be29679952f3a79c9baacd7951fad78a34098295

Evergreen Git git at git.evergreen-ils.org
Thu Apr 9 22:00:13 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, rel_2_8 has been updated
       via  be29679952f3a79c9baacd7951fad78a34098295 (commit)
       via  11a681dbd23f58a7858e1294c33390e85b7b0cac (commit)
      from  159fb15e791eabd3bb2234595d248994ef0501a1 (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 be29679952f3a79c9baacd7951fad78a34098295
Author: Galen Charlton <gmc at esilibrary.com>
Date:   Thu Apr 9 20:52:48 2015 +0000

    LP#1442246: (follow-up) use pre-wrap rather than pre
    
    This allows long messages to wrap; such messages can easily
    be produced by manual creation of user notes.
    
    Signed-off-by: Galen Charlton <gmc at esilibrary.com>
    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 2c63646..56cbef8 100644
--- a/Open-ILS/src/templates/opac/css/style.css.tt2
+++ b/Open-ILS/src/templates/opac/css/style.css.tt2
@@ -1740,7 +1740,7 @@ a.preflib_change {
     vertical-align: top;
 }
 .myopac_message_message {
-    white-space: pre;
+    white-space: pre-wrap;
 }
 
 @media only screen and (max-width: 800px) {

commit 11a681dbd23f58a7858e1294c33390e85b7b0cac
Author: Galen Charlton <gmc at esilibrary.com>
Date:   Tue Mar 31 20:34:42 2015 +0000

    LP#1442246: improve styling of patron messages
    
    This patch adds new CSS classes for pieces of the
    patron message display, uses a preformatted display
    for the message body, and fixes an HTML nesting error.
    
    Signed-off-by: Galen Charlton <gmc at esilibrary.com>
    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 1b50d0f..2c63646 100644
--- a/Open-ILS/src/templates/opac/css/style.css.tt2
+++ b/Open-ILS/src/templates/opac/css/style.css.tt2
@@ -1735,6 +1735,14 @@ a.preflib_change {
    display:none;
 }
 
+/* patron message center */
+#myopac_message_tbody {
+    vertical-align: top;
+}
+.myopac_message_message {
+    white-space: pre;
+}
+
 @media only screen and (max-width: 800px) {
     .facet_sidebar_hidden, .result_block_hidden {
         display: none;
diff --git a/Open-ILS/src/templates/opac/myopac/messages/single_message.tt2 b/Open-ILS/src/templates/opac/myopac/messages/single_message.tt2
index 3d6a82c..79ae7a1 100644
--- a/Open-ILS/src/templates/opac/myopac/messages/single_message.tt2
+++ b/Open-ILS/src/templates/opac/myopac/messages/single_message.tt2
@@ -25,27 +25,27 @@
         <table title="[% l('Message') %]"
             class='light_border data_grid'>
             <tbody id='myopac_message_tbody'>
-            </tbody>
             <tr>
                 <td width='30%'
                     class='color_4 light_border'>[% l("Date") %]</td>
-                <td>[% date.format(ctx.parse_datetime(ctx.patron_messages.0.create_date), DATE_FORMAT); %]</td>
+                <td class='myopac_message_date'>[% date.format(ctx.parse_datetime(ctx.patron_messages.0.create_date), DATE_FORMAT); %]</td>
             </tr>
             <tr>
                 <td width='30%'
                     class='color_4 light_border'>[% l("Library") %]</td>
-                <td>[% ctx.patron_messages.0.library | html %]</td>
+                <td class='myopac_message_library'>[% ctx.patron_messages.0.library | html %]</td>
             </tr>
             <tr>
                 <td width='30%'
                     class='color_4 light_border'>[% l("Subject") %]</td>
-                <td>[% ctx.patron_messages.0.title | html %]</td>
+                <td class='myopac_message_subject'>[% ctx.patron_messages.0.title | html %]</td>
             </tr>
             <tr>
                 <td width='30%'
                     class='color_4 light_border'>[% l("Message") %]</td>
-                <td>[% ctx.patron_messages.0.message | html %]</td>
+                <td class='myopac_message_message'>[% ctx.patron_messages.0.message | html %]</td>
             </tr>
+            </tbody>
         </table>
     </div>
 </div>

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

Summary of changes:
 Open-ILS/src/templates/opac/css/style.css.tt2      |    8 ++++++++
 .../opac/myopac/messages/single_message.tt2        |   10 +++++-----
 2 files changed, 13 insertions(+), 5 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list