View | Details | Raw Unified | Return to bug 2093
Collapse All | Expand All

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt (-6 / +6 lines)
Lines 137-158 Link Here
137
                    [% ELSE %]
137
                    [% ELSE %]
138
                        [% IF Koha.Preference('OPACUserSummary') %]
138
                        [% IF Koha.Preference('OPACUserSummary') %]
139
                            <div id="user_summary">
139
                            <div id="user_summary">
140
                                <h1>Welcome, <a href="/cgi-bin/koha/opac-user.pl"><span class="loggedinusername">[% USER_INFO.title %] [% USER_INFO.firstname %] [% USER_INFO.surname %]</span></a></h1>
140
                                <h3>Welcome, <a href="/cgi-bin/koha/opac-user.pl"><span class="loggedinusername">[% USER_INFO.title %] [% USER_INFO.firstname %] [% USER_INFO.surname %]</span></a></h3>
141
                                <ul id="user_summary_shortcuts">
141
                                <ul id="user_summary_shortcuts">
142
                                    [% IF checkouts && checkouts > 0 %]
142
                                    [% IF checkouts && checkouts > 0 %]
143
                                        <li><a href="/cgi-bin/koha/opac-user.pl">[% checkouts %] checkout(s)</a></li>
143
                                        <li><a href="/cgi-bin/koha/opac-user.pl#opac-user-checkouts"><span class="user_checkouts_count count_label">[% checkouts %]</span> Checkout(s)</a></li>
144
                                    [% END %]
144
                                    [% END %]
145
                                    [% IF overdues && overdues > 0 %]
145
                                    [% IF overdues && overdues > 0 %]
146
                                        <li><a href="/cgi-bin/koha/opac-user.pl">[% overdues %] overdue(s)</a></li>
146
                                        <li><a href="/cgi-bin/koha/opac-user.pl#opac-user-overdues"><span class="user_overdues_count count_label">[% overdues %]</span> Overdue(s)</a></li>
147
                                    [% END %]
147
                                    [% END %]
148
                                    [% IF holds_pending && holds_pending > 0 %]
148
                                    [% IF holds_pending && holds_pending > 0 %]
149
                                        <li><a href="/cgi-bin/koha/opac-user.pl">[% holds_pending %] hold(s) pending</a></li>
149
                                        <li><a href="/cgi-bin/koha/opac-user.pl#opac-user-holds"><span class="user_holds_pending_count count_label">[% holds_pending %]</span> Hold(s) pending</a></li>
150
                                    [% END %]
150
                                    [% END %]
151
                                    [% IF holds_waiting && holds_waiting > 0 %]
151
                                    [% IF holds_waiting && holds_waiting > 0 %]
152
                                        <li><a href="/cgi-bin/koha/opac-user.pl">[% holds_waiting %] hold(s) waiting</a></li>
152
                                        <li><a href="/cgi-bin/koha/opac-user.pl#opac-user-holds"><span class="user_holds_waiting_count count_label">[% holds_waiting %]</span> Hold(s) waiting</a></li>
153
                                    [% END %]
153
                                    [% END %]
154
                                    [% IF total_owing && total_owing > 0 %]
154
                                    [% IF total_owing && total_owing > 0 %]
155
                                        <li><a href="/cgi-bin/koha/opac-account.pl">[% total_owing | $Price %] due</a></li>
155
                                        <li><a href="/cgi-bin/koha/opac-account.pl"><span class="user_fines_count count_label">[% total_owing | $Price with_symbol => 1 %]</span> Due</a></li>
156
                                    [% END %]
156
                                    [% END %]
157
                                </ul>
157
                                </ul>
158
                            </div>
158
                            </div>
(-)a/koha-tmpl/opac-tmpl/bootstrap/less/opac.less (-1 / +70 lines)
Lines 2526-2529 a.reviewlink:visited { Link Here
2526
    color: white !important;
2526
    color: white !important;
2527
}
2527
}
2528
2528
2529
.count_label {
2530
    @base: #369;
2531
    background-color: @base;
2532
    border-radius: 5px;
2533
    color: #FFF;
2534
    display: inline-block;
2535
    font-weight: bold;
2536
    min-width: 1.5em;
2537
    padding: .2em;
2538
    text-align: center;
2539
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
2540
2541
    &:hover {
2542
        background-color: lighten( @base, 20% );
2543
    }
2544
}
2545
2546
.user_checkouts_count {
2547
2548
}
2549
2550
.user_overdues_count,
2551
.user_fines_count {
2552
    background-color: #990000;
2553
    &:hover {
2554
        background-color: lighten( #990000, 10% );
2555
    }
2556
}
2557
2558
.user_holds_pending_count {
2559
2560
}
2561
2562
.user_holds_waiting_count {
2563
    background-color: #538200;
2564
    &:hover {
2565
        background-color: lighten( #538200, 10% );
2566
    }
2567
}
2568
2569
#user_summary {
2570
    border: 1px solid #EAEAE6;
2571
    border-radius: 7px;
2572
    margin-bottom: 1em;
2573
    padding-bottom: .5em;
2574
2575
    h3 {
2576
        background-color: #EAEAE6;
2577
        border-top-left-radius: 6px;
2578
        border-top-right-radius: 6px;
2579
        box-shadow: 0 1px 1px 0 rgba(0,0,0,0.2);
2580
        margin-top: 0;
2581
        padding: .2em 0;
2582
        text-align: center;
2583
    }
2584
2585
    ul {
2586
        list-style-type: none;
2587
        margin: 0 0 .2em 0;
2588
2589
        a {
2590
            display: block;
2591
            font-weight: bold;
2592
            padding: .2em 1em;
2593
        }
2594
    }
2595
}
2596
2597
2598
2529
@import "responsive.less";
2599
@import "responsive.less";
2530
- 

Return to bug 2093