chiark / gitweb /
nugatory front page
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 22 Nov 2020 12:56:15 +0000 (12:56 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 22 Nov 2020 12:56:15 +0000 (12:56 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/bin/daemon-otter.rs
templates/front.tera [new file with mode: 0644]

index 54a457ff1d76abcf5039074f58693ebfbea32453..fe010a8b63cac654f941a80b6a4d4de67e591a32 100644 (file)
@@ -12,13 +12,13 @@ use rocket::fairing;
 use otter::imports::*;
 
 #[derive(Serialize,Debug)]
-struct TestRenderContext { }
+struct FrontPageRenderContext { }
 
 #[get("/")]
 #[throws(OE)]
 fn index() -> Template {
-  let c = TestRenderContext { };
-  Template::render("test",&c)
+  let c = FrontPageRenderContext { };
+  Template::render("front",&c)
 }
 
 #[derive(Copy,Clone,Debug)]
diff --git a/templates/front.tera b/templates/front.tera
new file mode 100644 (file)
index 0000000..be885ab
--- /dev/null
@@ -0,0 +1,21 @@
+<html>
+  <head>
+    <title>Otter</title>
+  </head>
+<body>
+
+<h1>Otter - Online TableTop Environment Renderer</h1>
+<p>
+  This server is running Otter, the Online TableTop Environment
+  Renderer.
+<p>
+  To use this server, you need an access link.  Please visit
+  that link directly.
+<p>
+  For further information, see the <a href="/_/src/README.md">README</a>.
+<p>
+  Otter and its shape (piece picture) libraries
+  are <a href="/_/libre">Free Software</a> and come with NO
+  WARRANTY.
+</body>
+</html>