Make Login button become Logout

This commit is contained in:
swag 2023-05-03 22:46:38 -04:00
parent ab0f53ba26
commit b1c2d41826

View File

@ -13,11 +13,13 @@
<%= link_to About => 'about_page' %> <%= link_to About => 'about_page' %>
<%= link_to Rules => 'rules_page' %> <%= link_to Rules => 'rules_page' %>
<%= link_to RSS => threads_feed => {format => 'rss'} %> <%= link_to RSS => threads_feed => {format => 'rss'} %>
<% unless (is_mod) { =%>
<span class="login"> <span class="login">
<% if (is_mod) { =%>
<%= link_to Logout => 'mod_logout' %>
<% } else { =%>
<%= link_to Login => 'mod_login' %> <%= link_to Login => 'mod_login' %>
</span>
<% } =%> <% } =%>
</span>
</div> </div>
<% if (is_mod) { =%> <% if (is_mod) { =%>
<div> <div>
@ -25,7 +27,6 @@
<%= link_to Flagged => 'flagged_list' %> <%= link_to Flagged => 'flagged_list' %>
<%= link_to Hidden => 'hidden_list' %> <%= link_to Hidden => 'hidden_list' %>
<%= link_to Reset => 'mod_reset' %> <%= link_to Reset => 'mod_reset' %>
<%= link_to Logout => 'mod_logout' %>
</div> </div>
<% } =%> <% } =%>
<% if (is_admin) { =%> <% if (is_admin) { =%>