defmodule LiveBeatsWeb.PlayerLive do use LiveBeatsWeb, {:live_view, container: {:div, []}} alias LiveBeats.{Accounts, MediaLibrary} alias LiveBeats.MediaLibrary.Song alias LiveBeatsWeb.Presence on_mount {LiveBeatsWeb.UserAuth, :current_user} def render(assigns) do ~H"""
<%= if @song, do: @song.artist, else: raw(" ") %>
<%= @profile.username %>
<% else %> <% end %> <%= if @own_profile? do %> <% end %> <%= if !@own_profile? && @profile && @profile.songs_count > 0 do %> <% end %>