From 4d0565d9bb461529657cb7da5a7ad034a4abc8d6 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Mon, 4 Jan 2021 02:23:03 -0800 Subject: [PATCH] Add jank support for html motds. --- frontends/etiquette_flask/templates/root.html | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/frontends/etiquette_flask/templates/root.html b/frontends/etiquette_flask/templates/root.html index f50051d..a3aa81e 100644 --- a/frontends/etiquette_flask/templates/root.html +++ b/frontends/etiquette_flask/templates/root.html @@ -59,7 +59,15 @@ body > div -

{{motd}}

+

+ {%- if motd is string -%} + {{motd}} + {%- elif motd[0] == "html" -%} + {{motd[1]|safe}} + {%- else -%} + {{motd[1]}} + {%- endif -%} +

Search Browse tags Browse albums