From 346bde4a6eb4574d304d22e358e9d3c702ecd2b4 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Sat, 29 Apr 2017 04:57:42 +0000 Subject: [PATCH] Bug 2093 [Follow-up] Add OPAC dashboard for logged-in users This patch adds some additional markup for applying styles to and the corresponding CSS. Also modified: Links to opac-user.pl should now open the correct tab. To test, apply the patch and compile the modified LESS file. Clear your browser cache if necessary. Follow the original test plan and confirm that the revised links work correctly. --- .../opac-tmpl/bootstrap/en/modules/opac-main.tt | 12 ++-- koha-tmpl/opac-tmpl/bootstrap/less/opac.less | 70 ++++++++++++++++++++++ 2 files changed, 76 insertions(+), 6 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt index 3c9cf68..5db727b 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt @@ -125,22 +125,22 @@ [% ELSE %] [% IF Koha.Preference('OPACUserSummary') %]
-

Welcome, [% USER_INFO.title %] [% USER_INFO.firstname %] [% USER_INFO.surname %]

+

Welcome, [% USER_INFO.title %] [% USER_INFO.firstname %] [% USER_INFO.surname %]

diff --git a/koha-tmpl/opac-tmpl/bootstrap/less/opac.less b/koha-tmpl/opac-tmpl/bootstrap/less/opac.less index 8fc5da4..b39af2e 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/less/opac.less +++ b/koha-tmpl/opac-tmpl/bootstrap/less/opac.less @@ -2521,4 +2521,74 @@ a.reviewlink:visited { color: white !important; } +.count_label { + @base: #369; + background-color: @base; + border-radius: 5px; + color: #FFF; + display: inline-block; + font-weight: bold; + min-width: 1.5em; + padding: .2em; + text-align: center; + text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); + + &:hover { + background-color: lighten( @base, 20% ); + } +} + +.user_checkouts_count { + +} + +.user_overdues_count, +.user_fines_count { + background-color: #990000; + &:hover { + background-color: lighten( #990000, 10% ); + } +} + +.user_holds_pending_count { + +} + +.user_holds_waiting_count { + background-color: #538200; + &:hover { + background-color: lighten( #538200, 10% ); + } +} + +#user_summary { + border: 1px solid #EAEAE6; + border-radius: 7px; + margin-bottom: 1em; + padding-bottom: .5em; + + h3 { + background-color: #EAEAE6; + border-top-left-radius: 6px; + border-top-right-radius: 6px; + box-shadow: 0 1px 1px 0 rgba(0,0,0,0.2); + margin-top: 0; + padding: .2em 0; + text-align: center; + } + + ul { + list-style-type: none; + margin: 0 0 .2em 0; + + a { + display: block; + font-weight: bold; + padding: .2em 1em; + } + } +} + + + @import "responsive.less"; -- 2.1.4