TPAC - fix alignment of "You are now browsing..." in shelf browser
authorBen Shum <bshum@biblio.org>
Thu, 9 Aug 2012 16:27:57 +0000 (12:27 -0400)
committerDan Scott <dscott@laurentian.ca>
Mon, 13 Aug 2012 14:06:51 +0000 (10:06 -0400)
The "You are now browsing..." message does not align to the center of the
page. Changing the <div> to a <p> seems to properly align the text.

Along the way, we should remove the extra <span> and <strong> (the strong
is redundant with the css being inherited by color_4 class) and make the
new single line message more i18n-friendly for future translations.

Credit to Michael Peters for noticing the problem and thanks to Dan Scott,
Lebbeous Fogle-Weekley, and Thomas Berezansky for help via IRC for the
i18n-bits.

Signed-off-by: Ben Shum <bshum@biblio.org>
Signed-off-by: Michael Peters <mrpeters@library.in.gov>
Signed-off-by: Dan Scott <dscott@laurentian.ca>
Open-ILS/src/templates/opac/parts/record/cnbrowse.tt2

index 8240697..a9f77b6 100644 (file)
@@ -5,10 +5,9 @@
 
 <div id='cn_browse' class='cn_browser'>
     <div id='cn_browse_div'> 
-        <div class='color_4'>
-            <span>[% l("You are now browsing") %]</span>
-            <strong>[% ctx.browsing_ou.name | html %]</strong>
-        </div>
+        <p class='color_4'>
+            [% l("You are now browsing [_1]", ctx.browsing_ou.name) | html %]
+        </p>
         <table class='data_grid bookshelf' width='100%'>
             <thead>
                 <tr>