aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-09-22 02:11:50 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-09-22 02:11:50 +0200
commit1e0433c9df062ead21d0f46b15d088622b7d5c4f (patch)
treecc894172ca7deae5d835aea8f313da3aab1e2915 /t
parent3ea978c60ee03dba2cb883ba18d3b334cfbf6cd0 (diff)
downloadcforum-1e0433c9df062ead21d0f46b15d088622b7d5c4f.tar.gz
Log in, log outHEADmaster
Diffstat (limited to 't')
-rw-r--r--t/front.t7
1 files changed, 7 insertions, 0 deletions
diff --git a/t/front.t b/t/front.t
index 4f94a9b..f8dc9e3 100644
--- a/t/front.t
+++ b/t/front.t
@@ -1,8 +1,15 @@
<% #include "head.tc" %>
<h1><%= site.name %></h1>
+<% if(curuser) { %>
+Logged in as <%= curuser->name %>.
+<% } %>
<ul>
+ <% if(curuser){ %>
+ <li><a href="?delete=session">Log out</a></li>
+ <% }else{ %>
<li><a href="?new=user">Sign up</a></li>
<li><a href="?new=session">Log in</a></li>
+ <% } %>
</ul>
<h3>Latest posts</h3>
<table border="1">