annotate src/private/admin.html.luan @ 60:8b5b1bce7d6b

bcode menus
author Franklin Schmidt <fschmidt@gmail.com>
date Wed, 30 Nov 2022 23:50:52 -0700
parents 2f20b11affdd
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4
a17e400ddaa1 add email
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
1 local Luan = require "luan:Luan.luan"
a17e400ddaa1 add email
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
2 local error = Luan.error
a17e400ddaa1 add email
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
3 local Io = require "luan:Io.luan"
a17e400ddaa1 add email
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
4 local Http = require "luan:http/Http.luan"
a17e400ddaa1 add email
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
5 local Shared = require "site:/lib/Shared.luan"
a17e400ddaa1 add email
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
6 local head = Shared.head or error()
a17e400ddaa1 add email
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
7 local header = Shared.admin_header or error()
a17e400ddaa1 add email
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
8
a17e400ddaa1 add email
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
9
a17e400ddaa1 add email
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
10 return function()
a17e400ddaa1 add email
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
11 Io.stdout = Http.response.text_writer()
a17e400ddaa1 add email
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
12 %>
a17e400ddaa1 add email
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
13 <!doctype html>
a17e400ddaa1 add email
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
14 <html>
a17e400ddaa1 add email
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
15 <head>
a17e400ddaa1 add email
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
16 <% head() %>
a17e400ddaa1 add email
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
17 <title>Admin</title>
a17e400ddaa1 add email
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
18 </head>
a17e400ddaa1 add email
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
19 <body>
a17e400ddaa1 add email
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
20 <% header() %>
a17e400ddaa1 add email
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
21 <div content>
a17e400ddaa1 add email
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
22 <h1>Admin</h1>
a17e400ddaa1 add email
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
23 <p><a href="/">Home</a></p>
a17e400ddaa1 add email
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
24 <p><a href="admin/config.html">Configure Forum</a></p>
a17e400ddaa1 add email
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
25 <p><a href="admin/mail_config.html">Configure Mail</a></p>
a17e400ddaa1 add email
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
26
a17e400ddaa1 add email
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
27 <h2>Tools</h2>
a17e400ddaa1 add email
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
28 <p><a href="tools/lucene.html">lucene</a></p>
5
2f20b11affdd add tools
Franklin Schmidt <fschmidt@gmail.com>
parents: 4
diff changeset
29 <p><a href="tools/shell.html">luan shell</a></p>
2f20b11affdd add tools
Franklin Schmidt <fschmidt@gmail.com>
parents: 4
diff changeset
30 <p><a href="tools/run">luan batch</a></p>
2f20b11affdd add tools
Franklin Schmidt <fschmidt@gmail.com>
parents: 4
diff changeset
31 <p><a href="/tools/cookies.html">cookies</a></p>
2f20b11affdd add tools
Franklin Schmidt <fschmidt@gmail.com>
parents: 4
diff changeset
32 <p><a href="/tools/dimensions.html">dimensions</a></p>
2f20b11affdd add tools
Franklin Schmidt <fschmidt@gmail.com>
parents: 4
diff changeset
33 <p><a href="/tools/request.txt">request</a></p>
4
a17e400ddaa1 add email
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
34 </div>
a17e400ddaa1 add email
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
35 </body>
a17e400ddaa1 add email
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
36 </html>
a17e400ddaa1 add email
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
37 <%
a17e400ddaa1 add email
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
38 end