You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

13 lines
502 B

% my $user = session 'useruid';
<ul class="ui-block">
% if ($user) {
<li><span style="color: black;"><%= $user %></span></li>
<li><a href="/user/profile" rel="nofollow">Профиль</a></li>
<li><a href="/user/logout" rel="nofollow">Выйти</a></li>
% } else {
<li><a href="/user/login" rel="nofollow">Войти</a></li>
% if (config->{user}->{allow_register}) {
<li><a href="/user/register" rel="nofollow">Регистрация</a></li>
% }
% }
</ul>