defmodule LiveBeatsWeb.LayoutView do
use LiveBeatsWeb, :view
# Phoenix LiveDashboard is available only in development by default,
# so we instruct Elixir to not warn if the dashboard route is missing.
@compile {:no_warn_undefined, {Routes, :live_dashboard_path, 2}}
alias LiveBeatsWeb.Endpoint
def sidebar_active_users(assigns) do
~H"""
Active Users
<%= for user <- @users do %>
<.link navigate={profile_path(user)}
class="group flex items-center px-3 py-2 text-base leading-5 font-medium text-gray-600 rounded-md hover:text-gray-900 hover:bg-gray-50"
>
<%= user.username %>
<% end %>