comparison src/index.html.luan @ 0:dfc36e7ed22c

init
author Vadim Filimonov <fffilimonov@yandex.ru>
date Thu, 12 May 2022 13:51:59 +0400
parents
children e3448053230a
comparison
equal deleted inserted replaced
-1:000000000000 0:dfc36e7ed22c
1 local Luan = require "luan:Luan.luan"
2 local error = Luan.error
3 local Io = require "luan:Io.luan"
4 local Http = require "luan:http/Http.luan"
5 local Shared = require "site:/lib/Shared.luan"
6 local head = Shared.head or error()
7 local header = Shared.header or error()
8
9
10 return function()
11 Io.stdout = Http.response.text_writer()
12 %>
13 <!doctype html>
14 <html>
15 <head>
16 <% head() %>
17 <title>Mercurial Hosting</title>
18 <style>
19 h1 {
20 margin-bottom: 0;
21 }
22 h3 {
23 margin-top: 8px;
24 }
25 </style>
26 </head>
27 <body>
28 <% header() %>
29 <div content>
30 <h1>Mercurial Hosting</h1>
31
32 <h3>A free service by <a href="http://www.reactionary.software/">Reactionary Software</a></h3>
33
34 <p>If you are already registered then view <a href="/admin/">your repositories</a>.</p>
35
36 <p>This site uses authentication for access. To use it, you must <a href="get_password.html">register</a>. If you have forgotten your password, you can get it on <a href="get_password.html">the same page</a>.</p>
37
38 <p>To see an example of a hosted repository, see <a href="https://hg.luan.software/hghost-test">the source for this service</a>.</p>
39
40 <p>For support, ask in a <a href="http://www.reactionary.software/discussion.html">Reactionary Software discussion</a>.</p>
41 </div>
42 </body>
43 </html>
44 <%
45 end