From 55a9ba447127832fad218d5a493783474cf74758 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Wed, 25 Nov 2020 22:21:30 +0000 Subject: [PATCH] before try flex horiz too Signed-off-by: Ian Jackson --- src/session.rs | 2 +- templates/landscape.tera | 118 +++++++++++---------------------------- 2 files changed, 33 insertions(+), 87 deletions(-) diff --git a/src/session.rs b/src/session.rs index 736f5a79..b919ec6c 100644 --- a/src/session.rs +++ b/src/session.rs @@ -187,7 +187,7 @@ fn session(form : Json) -> Result { &player, client, &c.nick, &c.ctoken, iad.gref.lock().ok().as_ref().map(|ig| &**ig)); - Ok(Template::render("session",&c)) + Ok(Template::render("landscape",&c)) } pub fn mount(rocket_instance: Rocket) -> Rocket { diff --git a/templates/landscape.tera b/templates/landscape.tera index be5c758c..f0516a3b 100644 --- a/templates/landscape.tera +++ b/templates/landscape.tera @@ -1,101 +1,47 @@ - +{% import "macros" as m %}{# -*- HTML -*- -#} +{{ m::header() }} -
-
- - - -{%- for piece in uses %} - -{%- endfor %} - -{%- for piece in defs %} - {{ piece.1 }} -{%- endfor %} - -
-
-Hi {{nick | escape}} | | -nothing -

-
-
-
-

-

-
-
-
-
Mouse select/deselect/drag
-
shift multiple selection
-
-

-

- +
+ + - + {{ent.when}}
+ {{ ent.logent.logent.html | safe }}
{%- endfor %} -
{{ m::space() }} +
+ {{ m::nick() }} +
+ {{ m::status() }}
+
foo bar +
+ {{ m::wresting() }}
+
+ {{ m::errors() }} +
+ {{ m::uos() }} + +
{% for ent in log %} -
{{ent.when}}
{{ ent.logent.logent.html | safe }}
-
- -
+ + -
-
-This server is running Otter, the Online TableTop Environment -Renderer. Otter and its shape (piece picture) libraries -are Free Software and come with NO -WARRANTY. +{{ m::footer() }} -- 2.30.2