annotate src/private/tools/index.html.luan @ 1:92a0646e38b6

fix backup
author fffilimonov
date Thu, 12 May 2022 05:32:53 -0500
parents dfc36e7ed22c
children 028e74c8889d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
1 local Luan = require "luan:Luan.luan"
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
2 local error = Luan.error
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
3 local Io = require "luan:Io.luan"
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
4 local Http = require "luan:http/Http.luan"
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
5 local Shared = require "site:/lib/Shared.luan"
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
6 local head = Shared.head or error()
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
7 local header = Shared.private_header or error()
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
8
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
9
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
10 return function()
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
11 Io.stdout = Http.response.text_writer()
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
12 %>
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
13 <!doctype html>
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
14 <html>
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
15 <head>
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
16 <% head() %>
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
17 <title>Mercurial Private Tools</title>
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
18 </head>
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
19 <body>
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
20 <% header() %>
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
21 <div content>
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
22 <h1>Private Tools</h1>
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
23 <p><a href="users.html">edit private users</a></p>
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
24 <p><a href="backup.html">edit backup</a></p>
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
25 <p><a href="links.txt">links.txt</a></p>
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
26 </div>
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
27 </body>
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
28 </html>
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
29 <%
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
30 end