Mercurial Hosting > chat
comparison src/lib/Shared.luan @ 51:38c209714df9
rename to Luan Chat
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 03 Mar 2025 12:13:40 -0700 |
parents | 42b741a1d5c6 |
children | 9298b04607ae |
comparison
equal
deleted
inserted
replaced
50:979a9ee73ea4 | 51:38c209714df9 |
---|---|
30 Shared.started = started | 30 Shared.started = started |
31 | 31 |
32 local title | 32 local title |
33 local domain = Http.domain | 33 local domain = Http.domain |
34 if domain == "chat.luan.software" then | 34 if domain == "chat.luan.software" then |
35 title = "Web Chat" | 35 title = "Luan Chat" |
36 elseif domain == "test.chat.luan.software" then | 36 elseif domain == "test.chat.luan.software" then |
37 title = "Web Chat test" | 37 title = "Luan Chat test" |
38 elseif domain == nil then | 38 elseif domain == nil then |
39 title = "Web Chat local" | 39 title = "Luan Chat local" |
40 else | 40 else |
41 error(domain) | 41 error(domain) |
42 end | 42 end |
43 Shared.title = title | 43 Shared.title = title |
44 | 44 |
56 local function header(crumbs) | 56 local function header(crumbs) |
57 local user = current_user() | 57 local user = current_user() |
58 %> | 58 %> |
59 <div header> | 59 <div header> |
60 <span> | 60 <span> |
61 <a href="/">Web Chat</a> | 61 <a href="/">Luan Chat</a> |
62 <% for _, crumb in ipairs(crumbs or {}) do %> | 62 <% for _, crumb in ipairs(crumbs or {}) do %> |
63 / <%=crumb%> | 63 / <%=crumb%> |
64 <% end %> | 64 <% end %> |
65 </span> | 65 </span> |
66 <span right> | 66 <span right> |