Mercurial Hosting > luan
comparison website/src/lib/Shared.luan @ 1932:047e4dde22b4
minor
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Fri, 02 May 2025 17:32:01 -0600 |
parents | 31f006c64782 |
children | 7d5dabe8eab8 |
comparison
equal
deleted
inserted
replaced
1931:28cd9b3abdb3 | 1932:047e4dde22b4 |
---|---|
14 local Shared = {} | 14 local Shared = {} |
15 | 15 |
16 Http.not_found_handler = Site_translator.not_found_handler or error() | 16 Http.not_found_handler = Site_translator.not_found_handler or error() |
17 | 17 |
18 local started = Time.now() | 18 local started = Time.now() |
19 Shared.started = started | 19 |
20 local function reactionary_url() | |
21 local url = "https://www.reactionary.software" | |
22 local lang = get_lang() | |
23 if lang ~= "en" then | |
24 url = url.."/"..lang | |
25 end | |
26 return url | |
27 end | |
28 Shared.reactionary_url = reactionary_url | |
20 | 29 |
21 function Shared.head() | 30 function Shared.head() |
22 %> | 31 %> |
23 <meta name="viewport" content="width=device-width, initial-scale=1"> | 32 <meta name="viewport" content="width=device-width, initial-scale=1"> |
24 <style> | 33 <style> |
49 %> | 58 %> |
50 <option value="<%=code%>" <%=selected%> ><%=name%></option> | 59 <option value="<%=code%>" <%=selected%> ><%=name%></option> |
51 <% end %> | 60 <% end %> |
52 </select> | 61 </select> |
53 </span> | 62 </span> |
54 <span><a href="https://www.reactionary.software/">reactionary software</a> by <a href="https://linkmy.style/fschmidt">fschmidt</a></span> | 63 <span><a href="<%=reactionary_url()%>/">reactionary software</a> by <a href="https://linkmy.style/fschmidt">fschmidt</a></span> |
55 </div> | 64 </div> |
56 <% | 65 <% |
57 end | 66 end |
58 Shared.header = header | 67 Shared.header = header |
59 | 68 |