view src/index.html.luan @ 3:e3448053230a

fix source link
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 12 May 2022 10:26:43 -0600
parents dfc36e7ed22c
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.header or error()


return function()
	Io.stdout = Http.response.text_writer()
%>
<!doctype html>
<html>
	<head>
<%		head() %>
		<title>Mercurial Hosting</title>
		<style>
			h1 {
				margin-bottom: 0;
			}
			h3 {
				margin-top: 8px;
			}
		</style>
	</head>
	<body>
<%		header() %>
		<div content>
			<h1>Mercurial Hosting</h1>

			<h3>A free service by <a href="http://www.reactionary.software/">Reactionary Software</a></h3>

			<p>If you are already registered then view <a href="/admin/">your repositories</a>.</p>

			<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>

			<p>To see an example of a hosted repository, see <a href="https://hg.reactionary.software/repo/hghosting">the source for this service</a>.</p>

			<p>For support, ask in a <a href="http://www.reactionary.software/discussion.html">Reactionary Software discussion</a>.</p>
		</div>
	</body>
</html>
<%
end