memEx/lib/memex_web/live/home_live.ex
2022-11-26 21:32:12 -05:00

16 lines
364 B
Elixir

defmodule MemexWeb.HomeLive do
@moduledoc """
Liveview for the main home page
"""
use MemexWeb, :live_view
alias Memex.Accounts
alias MemexWeb.{Endpoint, FaqLive}
@impl true
def mount(_params, _session, socket) do
admins = Accounts.list_users_by_role(:admin)
{:ok, socket |> assign(page_title: gettext("home"), admins: admins)}
end
end