From e60fdeccf9be2a2e89064bdef745da8d620609e0 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 22 Nov 2020 12:56:15 +0000 Subject: [PATCH] nugatory front page Signed-off-by: Ian Jackson --- src/bin/daemon-otter.rs | 6 +++--- templates/front.tera | 21 +++++++++++++++++++++ 2 files changed, 24 insertions(+), 3 deletions(-) create mode 100644 templates/front.tera 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. + + -- 2.30.2