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.

11 lines
370 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>
% }
</ul>