summaryrefslogtreecommitdiff
path: root/lib/lsg_web/components/message_component.ex
diff options
context:
space:
mode:
authorhref <href@random.sh>2021-09-07 08:14:33 +0200
committerhref <href@random.sh>2021-09-07 08:14:33 +0200
commitb10f9797cb15d0e8a4e4b5014138dc5bfd875d88 (patch)
tree67877b6b91db23f768720245d0b5754a2670d87b /lib/lsg_web/components/message_component.ex
parentalcoolog: fix ets (diff)
live fixes/improvements
Diffstat (limited to '')
-rw-r--r--lib/lsg_web/components/message_component.ex2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/lsg_web/components/message_component.ex b/lib/lsg_web/components/message_component.ex
index 2381411..5997754 100644
--- a/lib/lsg_web/components/message_component.ex
+++ b/lib/lsg_web/components/message_component.ex
@@ -3,6 +3,8 @@ defmodule LSGWeb.MessageComponent do
def content(assigns) do
~H"""
+ <LSGWeb.Component.naive_date_time_utc datetime={@message.at} format="time-24-with-seconds" />
+ <div class="inline-block font-bold flex-none cursor-default"><%= @message.sender.nick %></div>
<div class="inline-block flex-grow cursor-default"><%= @text %></div>
"""
end