diff options
Diffstat (limited to '')
-rw-r--r-- | lib/lsg_web/components/component.ex | 2 | ||||
-rw-r--r-- | lib/lsg_web/components/event_component.ex | 10 | ||||
-rw-r--r-- | lib/lsg_web/components/message_component.ex | 4 |
3 files changed, 8 insertions, 8 deletions
diff --git a/lib/lsg_web/components/component.ex b/lib/lsg_web/components/component.ex index d504129..fff8263 100644 --- a/lib/lsg_web/components/component.ex +++ b/lib/lsg_web/components/component.ex @@ -1,4 +1,4 @@ -defmodule LSGWeb.Component do +defmodule NolaWeb.Component do use Phoenix.Component @date_time_default_format "%F %H:%M" diff --git a/lib/lsg_web/components/event_component.ex b/lib/lsg_web/components/event_component.ex index fa81d19..8af3c67 100644 --- a/lib/lsg_web/components/event_component.ex +++ b/lib/lsg_web/components/event_component.ex @@ -1,4 +1,4 @@ -defmodule LSGWeb.EventComponent do +defmodule NolaWeb.EventComponent do use Phoenix.Component def content(assigns = %{event: %{type: :day_changed}}) do @@ -10,7 +10,7 @@ defmodule LSGWeb.EventComponent do def content(assigns = %{event: %{type: :quit}}) do ~H""" - <LSGWeb.Component.nick self={@self} nick={@user.nick} user_id={@user.id} account_id={@user.account} /> + <NolaWeb.Component.nick self={@self} nick={@user.nick} user_id={@user.id} account_id={@user.account} /> has quit: <span class="reason"><%= @reason %></span> """ @@ -18,7 +18,7 @@ defmodule LSGWeb.EventComponent do def content(assigns = %{event: %{type: :part}}) do ~H""" - <LSGWeb.Component.nick self={@self} nick={@user.nick} user_id={@user.id} account_id={@user.account} /> + <NolaWeb.Component.nick self={@self} nick={@user.nick} user_id={@user.id} account_id={@user.account} /> has left: <span class="reason"><%= @reason %></span> """ @@ -28,13 +28,13 @@ defmodule LSGWeb.EventComponent do ~H""" <span class="old-nick"><%= @old_nick %></span> is now known as - <LSGWeb.Component.nick self={@self} nick={@user.nick} user_id={@user.id} account_id={@user.account} /> + <NolaWeb.Component.nick self={@self} nick={@user.nick} user_id={@user.id} account_id={@user.account} /> """ end def content(assigns = %{event: %{type: :join}}) do ~H""" - <LSGWeb.Component.nick self={@self} nick={@user.nick} user_id={@user.id} account_id={@user.account} /> + <NolaWeb.Component.nick self={@self} nick={@user.nick} user_id={@user.id} account_id={@user.account} /> joined """ end diff --git a/lib/lsg_web/components/message_component.ex b/lib/lsg_web/components/message_component.ex index 5997754..5d0386b 100644 --- a/lib/lsg_web/components/message_component.ex +++ b/lib/lsg_web/components/message_component.ex @@ -1,9 +1,9 @@ -defmodule LSGWeb.MessageComponent do +defmodule NolaWeb.MessageComponent do use Phoenix.Component def content(assigns) do ~H""" - <LSGWeb.Component.naive_date_time_utc datetime={@message.at} format="time-24-with-seconds" /> + <NolaWeb.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> """ |