From 93c31e73cfb91c126de3a9f5fca1a30df514e8ed Mon Sep 17 00:00:00 2001 From: Ben Shum <bshum@biblio.org> Date: Thu, 9 Aug 2012 12:27:57 -0400 Subject: [PATCH] TPAC - fix alignment of "You are now browsing..." in shelf browser 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 | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Open-ILS/src/templates/opac/parts/record/cnbrowse.tt2 b/Open-ILS/src/templates/opac/parts/record/cnbrowse.tt2 index 82406970a4..a9f77b6849 100644 --- a/Open-ILS/src/templates/opac/parts/record/cnbrowse.tt2 +++ b/Open-ILS/src/templates/opac/parts/record/cnbrowse.tt2 @@ -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> -- 2.11.0