view src/private/admin.html.luan @ 47:7ef9222474e2

add more button
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 14 Nov 2022 23:01:29 -0700
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