diff options
Diffstat (limited to 't/front.t')
-rw-r--r-- | t/front.t | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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"> |