view src/private/admin.html.luan @ 32:72a1b77b4548

minor
author Franklin Schmidt <fschmidt@gmail.com>
date Fri, 29 Jul 2022 13:57:20 -0600
parents 2f20b11affdd
children
line wrap: on
line source

local Luan = require "luan:Luan.luan"
local error = Luan.error
local Io = require "luan:Io.luan"
local Http = require "luan:http/Http.luan"
local Shared = require "site:/lib/Shared.luan"
local head = Shared.head or error()
local header = Shared.admin_header or error()


return function()
	Io.stdout = Http.response.text_writer()
%>
<!doctype html>
<html>
	<head>
<%		head() %>
		<title>Admin</title>
	</head>
	<body>
<%		header() %>
		<div content>
			<h1>Admin</h1>
			<p><a href="/">Home</a></p>
			<p><a href="admin/config.html">Configure Forum</a></p>
			<p><a href="admin/mail_config.html">Configure Mail</a></p>

			<h2>Tools</h2>
			<p><a href="tools/lucene.html">lucene</a></p>
			<p><a href="tools/shell.html">luan shell</a></p>
			<p><a href="tools/run">luan batch</a></p>
			<p><a href="/tools/cookies.html">cookies</a></p>
			<p><a href="/tools/dimensions.html">dimensions</a></p>
			<p><a href="/tools/request.txt">request</a></p>
		</div>
	</body>
</html>
<%
end