From 49bcd0543db389e5aeb24af07d03b5e347cbbb21 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 5 Sep 2022 05:04:48 +0200 Subject: [PATCH] add hats to chat, part I --- files/routes/chat.py | 1 + files/templates/chat.html | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/files/routes/chat.py b/files/routes/chat.py index dc1bf8c70..307b33eb3 100644 --- a/files/routes/chat.py +++ b/files/routes/chat.py @@ -66,6 +66,7 @@ def speak(data, v): data={ "avatar": v.profile_url, + "hat": v.hat_active, "username": v.username, "namecolor": v.namecolor, "text": text, diff --git a/files/templates/chat.html b/files/templates/chat.html index b33c609fe..a2735ed77 100644 --- a/files/templates/chat.html +++ b/files/templates/chat.html @@ -163,7 +163,12 @@
{% if not same %} - +
+ + {% if m.get('hat') -%} + + {%- endif %} +
{% endif %} {{m['username']}}