aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
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">