Mercurial Hosting > freedit
comparison src/lib/Shared.luan @ 7:0472897e790d
add javascript
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 23 Jun 2022 23:38:03 -0600 |
parents | 9166f6a14021 |
children | 24668255cede |
comparison
equal
deleted
inserted
replaced
6:9166f6a14021 | 7:0472897e790d |
---|---|
19 %> | 19 %> |
20 <meta name="viewport" content="width=device-width, initial-scale=1"> | 20 <meta name="viewport" content="width=device-width, initial-scale=1"> |
21 <style> | 21 <style> |
22 @import "/site.css"; | 22 @import "/site.css"; |
23 </style> | 23 </style> |
24 <script src="/site.js"></script> | |
24 <% | 25 <% |
25 end | 26 end |
26 | 27 |
27 function Shared.header() | 28 function Shared.header() |
28 local user = User.current() | 29 local user = User.current() |
29 %> | 30 %> |
31 <p style="text-align:center">Yes the aesthetics suck. Will be fixed later.</p> | |
30 <div header> | 32 <div header> |
31 <a href="/"><%=forum_title%></a> | 33 <a href="/"><%=forum_title%></a> |
32 <% if user == nil then %> | 34 <% if user == nil then %> |
33 <a href="/login.html">login</a> | 35 <a href="/login.html">login</a> |
34 <% else %> | 36 <% else %> |