Mercurial Hosting > freedit
comparison src/lib/Shared.luan @ 4:a17e400ddaa1
add email
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 21 Jun 2022 11:58:27 -0600 |
parents | fc3ee39d7764 |
children | 2f20b11affdd |
comparison
equal
deleted
inserted
replaced
3:fc3ee39d7764 | 4:a17e400ddaa1 |
---|---|
39 <a href="/config.html">Configuration</a> | 39 <a href="/config.html">Configuration</a> |
40 </div> | 40 </div> |
41 <% | 41 <% |
42 end | 42 end |
43 | 43 |
44 function Shared.admin_header() | |
45 %> | |
46 <div header> | |
47 <a href="/private/admin.html">Admin</a> | |
48 </div> | |
49 <% | |
50 end | |
51 | |
44 function Shared.base_url() | 52 function Shared.base_url() |
45 return Http.request.scheme.."://"..Http.request.headers["host"] | 53 return Http.request.scheme.."://"..Http.request.headers["host"] |
46 end | 54 end |
47 | 55 |
48 return Shared | 56 return Shared |