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>
[% 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 %]