Provide example for staff links in top nav bar user/tsbere/staff_top_bar
authorThomas Berezansky <tsbere@mvlc.org>
Mon, 5 Nov 2012 13:54:33 +0000 (08:54 -0500)
committerThomas Berezansky <tsbere@mvlc.org>
Mon, 5 Nov 2012 13:54:33 +0000 (08:54 -0500)
As what is useful to patrons isn't always useful to staff.

Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Open-ILS/src/templates/opac/parts/topnav_links.tt2

index e6f4169..acd31ff 100644 (file)
@@ -1,11 +1,19 @@
 <div id="gold-links-holder">
     <div id="gold-links">
         <div id="header-links">
+            [%- IF !ctx.is_staff %]
             <a href="http://example.com">[% l('Link 1') %]</a>
             <a href="http://example.com">[% l('Link 2') %]</a>
             <a href="http://example.com">[% l('Link 3') %]</a>
             <a href="http://example.com">[% l('Link 4') %]</a>
             <a href="http://example.com">[% l('Link 5') %]</a>
+            [%- ELSE %]
+            <a href="http://example.com">[% l('Staff Link 1') %]</a>
+            <a href="http://example.com">[% l('Staff Link 2') %]</a>
+            <a href="http://example.com">[% l('Staff Link 3') %]</a>
+            <a href="http://example.com">[% l('Staff Link 4') %]</a>
+            <a href="http://example.com">[% l('Staff Link 5') %]</a>
+            [%- END %]
         </div>
     </div>
 </div>