diff options
author | John Ankarström <john@ankarstrom.se> | 2021-09-22 02:11:50 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2021-09-22 02:11:50 +0200 |
commit | 1e0433c9df062ead21d0f46b15d088622b7d5c4f (patch) | |
tree | cc894172ca7deae5d835aea8f313da3aab1e2915 /t | |
parent | 3ea978c60ee03dba2cb883ba18d3b334cfbf6cd0 (diff) | |
download | cforum-1e0433c9df062ead21d0f46b15d088622b7d5c4f.tar.gz |
Diffstat (limited to '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"> |