comparison src/lib/Shared.luan @ 5:2f20b11affdd

add tools
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 21 Jun 2022 21:39:27 -0600
parents a17e400ddaa1
children 9166f6a14021
comparison
equal deleted inserted replaced
4:a17e400ddaa1 5:2f20b11affdd
21 function Shared.header() 21 function Shared.header()
22 local user = User.current() 22 local user = User.current()
23 %> 23 %>
24 <div header> 24 <div header>
25 <a href="/"><%=Forum.title%></a> 25 <a href="/"><%=Forum.title%></a>
26 -
27 <% if user == nil then %> 26 <% if user == nil then %>
28 <a href="/login.html">login</a> 27 <a href="/login.html">login</a>
29 <% else %> 28 <% else %>
30 <a href="/account.html"><%=user.name_html%></a> 29 <a href="/account.html"><%=user.name_html%></a>
31 <% end %> 30 <% end %>