From: Ian Jackson Date: Sun, 22 Nov 2020 12:56:15 +0000 (+0000) Subject: nugatory front page X-Git-Tag: otter-0.2.0~398 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=e60fdeccf9be2a2e89064bdef745da8d620609e0;p=otter.git nugatory front page Signed-off-by: Ian Jackson --- diff --git a/src/bin/daemon-otter.rs b/src/bin/daemon-otter.rs index 54a457ff..fe010a8b 100644 --- a/src/bin/daemon-otter.rs +++ b/src/bin/daemon-otter.rs @@ -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 index 00000000..be885ab4 --- /dev/null +++ b/templates/front.tera @@ -0,0 +1,21 @@ + + + Otter + + + +

Otter - Online TableTop Environment Renderer

+

+ This server is running Otter, the Online TableTop Environment + Renderer. +

+ To use this server, you need an access link. Please visit + that link directly. +

+ For further information, see the README. +

+ Otter and its shape (piece picture) libraries + are Free Software and come with NO + WARRANTY. + +