From: Ian Jackson Date: Wed, 25 Nov 2020 21:03:29 +0000 (+0000) Subject: wip refactor for landscape optionality X-Git-Tag: otter-0.2.0~363 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=3989367fcb60777eebc8e38aea867529b3784837;p=otter.git wip refactor for landscape optionality Signed-off-by: Ian Jackson --- diff --git a/templates/macros.tera b/templates/macros.tera new file mode 100644 index 00000000..3b3be04f --- /dev/null +++ b/templates/macros.tera @@ -0,0 +1,66 @@ +{# -*- HTML -*- -#} + +{% macro header() %} + +{% endmacro header %} + +{% macro nick() %} +Hi {{nick | escape}} +{% endmacro nick%} + +{% macro wresting() %} + +{% endmacro wresting %} + +{% macro status() %} +nothing +{% endmacro status %} + +{% macro errors() %} +

+{% endmacro errors %}
+
+{% macro space() %}
+    
+      
+      
+{%- for piece in uses %}
+      
+{%- endfor %}
+      
+{%- for piece in defs %}
+      {{ piece.1 }}
+{%- endfor %}
+    
+{% endmacro space %}
+
+{% macro uos() %}
+  
+
+
+
+
Mouse select/deselect/drag
+
shift multiple selection
+
+{% endmacro uos %} + +{% macro footer() %} +
+
+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. +{% endmacro footer %} diff --git a/templates/session.tera b/templates/session.tera index 1745485a..7a2b19f5 100644 --- a/templates/session.tera +++ b/templates/session.tera @@ -1,9 +1,5 @@ - +{% import "macros" as m %}{# -*- HTML -*- -#} +{{ m::header() }} -
-
-Hi {{nick | escape}} | | -nothing -

-
- - - -{%- for piece in uses %} - -{%- endfor %} - -{%- for piece in defs %} - {{ piece.1 }} -{%- endfor %} - -
-

-

-
-
-
-
Mouse select/deselect/drag
-
shift multiple selection
-
+{{ m::nick() }} +| +{{ m::wresting() }} +| +{{ m::status() }} +{{ m::errors() }} + +{{ m::space() }} +

{{ m::uos() }} +

- -{% for ent in log %} - -{%- endfor %} -
{{ ent.logent.logent.html | safe }}{{ent.when}}
+ + {% for ent in log %} + + {%- endfor %} +
{{ ent.logent.logent.html | safe }}{{ent.when}}
-
-
-
-
-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() }}