aboutsummaryrefslogtreecommitdiffstats
path: root/demo/templates/frag_messages.html.j2
diff options
context:
space:
mode:
authorJan Tuomi <jan@jantuomi.fi>2025-05-02 23:38:23 +0300
committerJan Tuomi <jan@jantuomi.fi>2025-05-02 23:38:23 +0300
commite17048eddfe2df86abd2d498da2a33b9c3dd8a72 (patch)
tree4e6799cdfb0e05c9df499bcf8ec4d33d8d5ec3fd /demo/templates/frag_messages.html.j2
parentef72b74ec34e95a38890d542cda298dd6565d5ad (diff)
Add sort_asc param, impl demo chat app
Diffstat (limited to 'demo/templates/frag_messages.html.j2')
-rw-r--r--demo/templates/frag_messages.html.j212
1 files changed, 12 insertions, 0 deletions
diff --git a/demo/templates/frag_messages.html.j2 b/demo/templates/frag_messages.html.j2
new file mode 100644
index 0000000..0473d16
--- /dev/null
+++ b/demo/templates/frag_messages.html.j2
@@ -0,0 +1,12 @@
+{#
+Params
+ messages List of message objects to display
+#}
+
+<div id="messages">
+ {% for m in messages %}
+ <div class="message">
+ <small>{{ m.ts }}</small> <strong>{{ m.username }}</strong>: {{ m.msg }}
+ </div>
+ {% endfor %}
+</div>