2023-05-09 06:37:07 +00:00
|
|
|
<%
|
|
|
|
my $userControls;
|
|
|
|
|
|
|
|
# TODO: once implemented, put username + profile link first
|
|
|
|
if ($self->session('is_auth') == 1) {
|
2024-08-08 07:22:31 +00:00
|
|
|
my $username =
|
2023-05-09 06:37:07 +00:00
|
|
|
$userControls = "<a href=\"/logout\">logout</a>"}
|
|
|
|
else {
|
|
|
|
$userControls =
|
2024-08-08 07:22:31 +00:00
|
|
|
"<a href=\"/login\">login</a> |
|
|
|
|
<a href=\"/register\">register</a>"};
|
2023-05-09 06:37:07 +00:00
|
|
|
%>
|
2023-05-17 04:18:25 +00:00
|
|
|
<a href="/"><h2><%== $self->board_name %></h2></a>
|
2023-05-09 06:37:07 +00:00
|
|
|
<%== $userControls %><br /><br />
|