diff src/index.html.luan @ 0:dfc36e7ed22c

init
author Vadim Filimonov <fffilimonov@yandex.ru>
date Thu, 12 May 2022 13:51:59 +0400
parents
children e3448053230a
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/index.html.luan	Thu May 12 13:51:59 2022 +0400
@@ -0,0 +1,45 @@
+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.luan.software/hghost-test">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