defmodule CanneryWeb.HomeLive do @moduledoc """ Liveview for the home page """ use CanneryWeb, :live_view alias Cannery.Accounts alias CanneryWeb.Endpoint @version Mix.Project.config()[:version] @impl true def mount(_params, _session, socket) do admins = Accounts.list_users_by_role(:admin) socket = socket |> assign(page_title: gettext("Home"), admins: admins, version: @version) {:ok, socket} end @impl true def render(assigns) do ~H"""
{gettext("Cannery:3")} />

<%= gettext("Welcome to %{name}", name: "Cannery") %>

<%= gettext("The self-hosted firearm tracker website") %>




""" end end