summaryrefslogtreecommitdiff
path: root/lib/lsg_web/components/event_component.ex
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--lib/lsg_web/components/event_component.ex7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/lsg_web/components/event_component.ex b/lib/lsg_web/components/event_component.ex
index 3b9cd3b..fa81d19 100644
--- a/lib/lsg_web/components/event_component.ex
+++ b/lib/lsg_web/components/event_component.ex
@@ -1,6 +1,13 @@
defmodule LSGWeb.EventComponent do
use Phoenix.Component
+ def content(assigns = %{event: %{type: :day_changed}}) do
+ ~H"""
+ Day changed:
+ <span class="reason"><%= Date.to_string(@date) %></span>
+ """
+ end
+
def content(assigns = %{event: %{type: :quit}}) do
~H"""
<LSGWeb.Component.nick self={@self} nick={@user.nick} user_id={@user.id} account_id={@user.account} />