kpac : repair skin2 logout link
authorBill Erickson <berick@esilibrary.com>
Mon, 9 Jul 2012 14:22:51 +0000 (10:22 -0400)
committerMike Rylander <mrylander@gmail.com>
Mon, 30 Jul 2012 19:05:06 +0000 (15:05 -0400)
Replace non-existent logout image with logout text, including username,
similar to skin1.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/examples/web/templates/kpac/parts/header.tt2

index 4533f26..d425b04 100644 (file)
@@ -9,7 +9,11 @@
         [% IF ctx.user %]
             [% redir = CGI.url('-base' => 1) _ ctx.kpac_root _ '/home' %]
             <a href="[% mkurl(ctx.logout_page, 
-                {redirect_to => redir.replace('^https:', 'http:')}, 1) %]"><img src="[% ctx.media_prefix %]/images/kpac/logout_btn.png"/></a>
+                {redirect_to => redir.replace('^https:', 'http:')}, 1) %]">
+               <div style='vertical-align:bottom; height:50px; padding-top:35px'>
+                [% l('Logout ([_1] [_2])', ctx.user.first_given_name, ctx.user.family_name) %]
+                </div>
+           </a>
         [% ELSE %]
             <a href="[% mkurl(ctx.opac_root _ '/login').replace('^http:', 'https:') %]"><img src="[% ctx.media_prefix %]/images/kpac/login_btn.png"/></a>
         [% END %]