comparison src/lib/Shared.luan @ 54:260abd8f8565

login and register
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 27 Nov 2022 23:46:27 -0700
parents 78b2d6995244
children 7ce54f6d93f2
comparison
equal deleted inserted replaced
53:cac477dd1f82 54:260abd8f8565
36 %> 36 %>
37 <p style="text-align:center">Yes the aesthetics suck. Will be fixed later.</p> 37 <p style="text-align:center">Yes the aesthetics suck. Will be fixed later.</p>
38 <div header> 38 <div header>
39 <a href="/"><%=forum_title%></a> 39 <a href="/"><%=forum_title%></a>
40 <% if user == nil then %> 40 <% if user == nil then %>
41 <a href="/login.html">login</a> 41 <span>
42 <a href="/login.html">login</a>
43 / <a href="/register.html">register</a>
44 </span>
42 <% else %> 45 <% else %>
43 <a href="/account.html"><%=user.name_html%></a> 46 <a href="/account.html"><%=user.name_html%></a>
44 <% end %> 47 <% end %>
45 </div> 48 </div>
46 <% 49 <%