From: Dan Scott Date: Fri, 16 Mar 2012 02:38:06 +0000 (-0400) Subject: Replace non-functional images with CSS styled text X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=1d338bbe94b9ee4c05f34a28bbee8d8251aa44af;p=working%2FEvergreen.git Replace non-functional images with CSS styled text The plus-sign and minus-sign images, used only for showing more or fewer copies, did not actually do anything when you clicked on them. In addition, they can be reasonably represented as plain text + CSS, saving an extra HTTP request per copy detail page that has more than 10 copies. Moving the text + CSS into the tag also makes them clickable, which is kind of nice. And, being CSS, it's easy to change the colour scheme to suit a different site. Signed-off-by: Dan Scott --- diff --git a/Open-ILS/src/templates/opac/parts/record/copy_table.tt2 b/Open-ILS/src/templates/opac/parts/record/copy_table.tt2 index 240f9703cd..71e55028e6 100644 --- a/Open-ILS/src/templates/opac/parts/record/copy_table.tt2 +++ b/Open-ILS/src/templates/opac/parts/record/copy_table.tt2 @@ -125,13 +125,13 @@ END; [%- more_copies_limit = 50 %] [%# TODO: config %] [%- IF ctx.copy_limit != more_copies_limit AND ctx.copies.size >= ctx.copy_limit %]
- - [% l('Show more copies') %] + +[% l('Show more copies') %]
[%- ELSIF ctx.copy_limit == more_copies_limit %]
- - [% l('Show fewer copies') %] + -[% l('Show fewer copies') %]
[%- END %] diff --git a/Open-ILS/web/css/skin/default/opac/style.css b/Open-ILS/web/css/skin/default/opac/style.css index 10dacd9a89..8591c8e313 100644 --- a/Open-ILS/web/css/skin/default/opac/style.css +++ b/Open-ILS/web/css/skin/default/opac/style.css @@ -1406,3 +1406,15 @@ table.result_holdings_table thead tr { table.result_holdings_table thead tr th { font-weight: bold; } +.charsign { + vertical-align: middle; + font-weight: bold; + padding: 5px 10px; + margin: .5em; + color: white; + background-color: #00593d; + border-radius: 4px; +} +a.charsign, a.charsign:hover { + text-decoration: none +} diff --git a/Open-ILS/web/images/minus_sign.png b/Open-ILS/web/images/minus_sign.png deleted file mode 100644 index 553efcfad0..0000000000 Binary files a/Open-ILS/web/images/minus_sign.png and /dev/null differ diff --git a/Open-ILS/web/images/plus_sign.png b/Open-ILS/web/images/plus_sign.png deleted file mode 100644 index 1f12d14bba..0000000000 Binary files a/Open-ILS/web/images/plus_sign.png and /dev/null differ