Maintenance message: avoid Unicode corruption, support KPAC
[working/Evergreen.git] / Open-ILS / src / templates / opac / parts / topnav.tt2
1 [%- IF ctx.maintenance_message -%]
2 <div id="maintenance_message">[% ctx.maintenance_message %]</div>
3 [%- END -%]
4 [% IF !ctx.is_staff %]
5 <div id="header-wrap">
6 <div id="header">
7     <div class="float-left">
8         [% INCLUDE "opac/parts/topnav_logo.tt2" %]
9     </div>
10     <div class="float-right">
11         [% IF !ctx.user %]
12         <div id="your-acct-login">
13             <a href="[% mkurl(ctx.opac_root _ '/myopac/main') %]" 
14                 class="opac-button opac-button-header" id="home_myopac_link">
15                 [% l('My Account') %]
16             </a>
17         </div>
18         [% ELSE %]
19         <div id="dash_wrapper">
20             <div id="dash_identity">
21                 <span id="dash_user">
22                     [%  l('[_1] [_2]', ctx.user.first_given_name, ctx.user.family_name) | html %]
23                 </span>
24                 <span class="dash_divider">|</span>
25                 <a href="[% mkurl(ctx.opac_root _ '/myopac/main') %]" 
26                     class="opac-button">[% l('My Account') %]</a>
27
28                 <a href="[% mkurl(ctx.opac_root _ '/logout', {}, 1) %]"
29                     class="opac-button" id="logout_link">[% l('Logout') %]</a>
30             </div>
31             <div id="dashboard">
32                 <span class="dash-align">
33                     <a class="dash-link" href="[% mkurl(ctx.opac_root _ '/myopac/circs')
34                         %]"><span id="dash_checked">[% ctx.user_stats.checkouts.total_out
35                         %]</span> [% l("Checked Out") %]</a>
36                 </span>
37                 <span class="dash_divider">|</span>
38                 <span class="dash-align">
39                     <a class="dash-link" href="[% mkurl(ctx.opac_root _ '/myopac/holds', {}, ['available'])
40                         %]"><span id="dash_holds">[% ctx.user_stats.holds.total
41                         %]</span> [% l("On Hold") %]</a>
42                 </span>
43                 <span class="dash_divider">|</span>
44                 <span class="dash-align">
45                     <a class="dash-link" href="[% mkurl(ctx.opac_root _ '/myopac/holds',
46                         {available => 1}) %]"><span id="dash_pickup">[%
47                         ctx.user_stats.holds.ready %]</span> [% l("Ready for Pickup") %]</a>
48                 </span>
49                 <span class="dash_divider">|</span>
50                 <span class="dash-align">
51                     <a class="dash-link" href="[% mkurl(ctx.opac_root _ '/myopac/main')
52                         %]"><span id="dash_fines">[% money(ctx.user_stats.fines.balance_owed)
53                         %]</span> [% l("Fines") %]</a>
54                 </span>
55             </div>
56         </div>
57         [% END %]
58     </div>
59     [%- INCLUDE "opac/parts/locale_picker.tt2" %]
60     <div class="common-no-pad"></div>
61 </div>
62 </div>
63 [% INCLUDE "opac/parts/topnav_links.tt2" %]
64 [% END %]