add login, signup, settings, delete confirm markup
This commit is contained in:
@ -1,10 +1,11 @@
|
||||
<nav id="topnav">
|
||||
<span>
|
||||
<h1 class="site-title">Porom</h1>
|
||||
<a href="<%= url_for("all_topics") %>">All topics</a>
|
||||
<% local topics_url = url_for("all_topics") %>
|
||||
<a class="site-title" href="<%= topics_url %>">Porom</a>
|
||||
<a href="<%= topics_url %>">All topics</a>
|
||||
</span>
|
||||
<span>
|
||||
<% if me:is_logged_in() then -%>
|
||||
<% if me and me:is_logged_in() then -%>
|
||||
Welcome, <a href="<%= url_for("user", {username = me.username}) %>"><%= me.username %></a>
|
||||
<% else -%>
|
||||
Welcome, guest. Please <a href="<%= url_for("user_signup") %>">sign up</a> or <a href="<%= url_for("user_login") %>">log in</a>
|
||||
|
Reference in New Issue
Block a user