From: Thomas Berezansky Date: Fri, 6 Dec 2013 15:31:21 +0000 (-0500) Subject: Notice message functionality X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=refs%2Fheads%2Fuser%2Ftsbere%2Fopac_notice_message;p=working%2FEvergreen.git Notice message functionality Similar to maintenance message, but less jarringly visible. Also not shown in the staff client. Signed-off-by: Thomas Berezansky --- diff --git a/Open-ILS/src/templates/opac/css/style.css.tt2 b/Open-ILS/src/templates/opac/css/style.css.tt2 index a40d3768f0..1f5fa88301 100644 --- a/Open-ILS/src/templates/opac/css/style.css.tt2 +++ b/Open-ILS/src/templates/opac/css/style.css.tt2 @@ -1572,6 +1572,14 @@ a.preflib_change { text-align: center; } +#notice_message { + padding: 5px; + width: 100%; + background-color: [% css_colors.background_invert %]; + color: [% css_colors.text_invert %]; + text-align: center; +} + #search-box > span { margin: 0 1em; } diff --git a/Open-ILS/src/templates/opac/parts/config.tt2 b/Open-ILS/src/templates/opac/parts/config.tt2 index bd4f77cd25..74e070c1f1 100644 --- a/Open-ILS/src/templates/opac/parts/config.tt2 +++ b/Open-ILS/src/templates/opac/parts/config.tt2 @@ -162,4 +162,10 @@ ctx.google_books_preview = 0; # # ctx.maintenance_message = "The system will not be available February 29, 2104."; +############################################################################## + +# Set a notice message to display in the catalogue +# +# ctx.notice_message = "Our catalog is now more mobile-friendly!"; + %] diff --git a/Open-ILS/src/templates/opac/parts/topnav.tt2 b/Open-ILS/src/templates/opac/parts/topnav.tt2 index e9cacdd10a..7c94686ce1 100644 --- a/Open-ILS/src/templates/opac/parts/topnav.tt2 +++ b/Open-ILS/src/templates/opac/parts/topnav.tt2 @@ -2,6 +2,9 @@
[% ctx.maintenance_message %]
[%- END -%] [% IF !ctx.is_staff %] +[%- IF ctx.notice_message -%] +
[% ctx.notice_message %]
+[%- END -%]