package Kwiki::UserName::Cookie;
use Kwiki::UserName -Base;
use mixin 'Kwiki::Installer';

our $VERSION = "0.01";

const class_title => 'Kwiki user name from Cookie';

sub register {
    my $registry = shift;
    $registry->add(preload => 'user_name');
}

__DATA__

=head1 NAME 

Kwiki::UserName::Remote - display the remote user name

=head1 DESCRIPTION

See L<Kwiki::Users::Remote> for more information.

=head1 AUTHORS

Ian Langworth <langworth.com> 

=head1 SEE ALSO

L<Kwiki>, L<Kwiki::Users::Remote>

=head1 COPYRIGHT AND LICENSE

Copyright (C) 2004, 2005 by Ian Langworth

This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.

=cut

__css/user_name.css__
div #user_name_title {
    font-size: small;
    float: right;
}
__template/tt2/user_name_title.html__
<div id="user_name_title">
<em>(Logged in as 
<a href="[% IF hub.config.login_url %][% hub.config.login_url %][% ELSE %] [% script_name %]?[% hub.users.current.name %][% END %]">
[%- hub.users.current.name || '???' -%]
</a>)
</em>
</div>