CharmBoard/templates/layouts/default/_header.html.ep

14 lines
388 B
Plaintext
Raw Permalink Normal View History

<%
my $userControls;
# TODO: once implemented, put username + profile link first
if ($c->session('is_auth')) {
2024-08-24 04:41:52 +00:00
my $username = '';
$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>"};
%>
<a href="/"><h2><%== $c->board_name %></h2></a>
<%== $userControls %><br /><br />