LP1857910 release note blurb for field doc port
[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 && !ctx.readonly %]
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]', 
23                       (ctx.user.pref_first_given_name || ctx.user.first_given_name), 
24                       (ctx.user.pref_family_name || ctx.user.family_name)
25                     ) | html %]
26                 </span>
27                 <span class="dash_divider">|</span>
28                 <span class="dash_account_buttons">
29                 <div id="dash_user_message_button_container">
30                     <a href="[% mkurl(ctx.opac_root _ '/myopac/messages', {}, ['single', 'message_id', 'hid']) %]" class="opac-button">
31                         [% l('Messages') %]
32                     </a>
33                     [% IF ctx.user_stats.messages.unread %]
34                         <div id="unread_message_count_floater">
35                             [%- ctx.user_stats.messages.unread -%]
36                             <span class="sr-only">[% l('unread') %]</a>
37                         </div>
38                     [% END %]
39                 </div>
40                 <a href="[% mkurl(ctx.opac_root _ '/myopac/main', {}, ['single', 'message_id', 'sort','sort_type', 'hid']) %]"
41                     class="opac-button">[% l('My Account') %]</a>
42                 <a href="[% mkurl(ctx.opac_root _ '/myopac/lists', {}, ['single', 'message_id', 'hid', 'from_basket']) %]"
43                     class="opac-button">[% l('My Lists') %]</a>
44                 <a href="[% mkurl(ctx.opac_root _ '/logout', {active_logout => 1}, 1) %]"
45                     class="opac-button" id="logout_link">[% l('Logout') %]</a>
46                 </span>
47             </div>
48             <div id="dashboard">
49                 <span class="dash-align">
50                     <a class="dash-link" href="[% mkurl(ctx.opac_root _ '/myopac/circs', {}, 
51                         ['limit','offset', 'single', 'message_id', 'sort','sort_type', 'hid'])
52                         %]"><span id="dash_checked">[% ctx.user_stats.checkouts.total_out
53                         %]</span> [% l("Checked Out") %]</a>
54                 </span>
55                 <span class="dash_divider">|</span>
56                 <span class="dash-align">
57                     <a class="dash-link" href="[% mkurl(ctx.opac_root _ '/myopac/holds', {}, 
58                         ['available', 'single', 'message_id', 'sort','sort_type', 'hid'])
59                         %]"><span id="dash_holds">[% ctx.user_stats.holds.total
60                         %]</span> [% l("On Hold") %]</a>
61                 </span>
62                 <span class="dash_divider">|</span>
63                 <span class="dash-align">
64                     <a class="dash-link" href="[% mkurl(ctx.opac_root _ '/myopac/holds',
65                         {available => 1}, ['single', 'message_id', 'sort','sort_type', 'hid']) %]"><span id="dash_pickup">[%
66                         ctx.user_stats.holds.ready %]</span> [% l("Ready for Pickup") %]</a>
67                 </span>
68                 <span class="dash_divider">|</span>
69                 <span class="dash-align">
70                     <a class="dash-link" href="[% mkurl(ctx.opac_root _ '/myopac/main', {}, ['single', 'message_id', 'sort','sort_type', 'hid'])
71                         %]"><span id="dash_fines">[% money(ctx.user_stats.fines.balance_owed)
72                         %]</span> [% l("Charges") %]</a>
73                 </span>
74             </div>
75             <div id="dashboard_e" class="hidden">
76                 <span class="dash-align">
77                     <a class="dash-link" href="[% mkurl(ctx.opac_root _ '/myopac/ebook_circs')
78                         %]"><span id="dash_e_checked">-</span> [% l("E-Items Checked Out") %]</a>
79                 </span>
80                 <span class="dash_divider">|</span>
81                 <span class="dash-align">
82                     <a class="dash-link" href="[% mkurl(ctx.opac_root _ '/myopac/ebook_holds')
83                         %]"><span id="dash_e_holds">-</span> [% l("E-Items on Hold") %]</a>
84                 </span>
85                 <span class="dash_divider">|</span>
86                 <span class="dash-align">
87                     <a class="dash-link" href="[% mkurl(ctx.opac_root _ '/myopac/ebook_holds_ready')
88                         %]"><span id="dash_e_pickup">-</span> [% l("E-Items Ready for Checkout") %]</a>
89                 </span>
90             </div>
91         </div>
92         [% END %]
93     </div>
94     [%- INCLUDE "opac/parts/locale_picker.tt2" %]
95     <div class="common-no-pad"></div>
96 </div>
97 </div>
98 [% INCLUDE "opac/parts/topnav_links.tt2" %]
99 [% END %]