From 1f1906f67d1eaf7a14dbcd8999f8644606626c34 Mon Sep 17 00:00:00 2001 From: Chris McCord Date: Wed, 1 Feb 2023 16:04:34 -0500 Subject: [PATCH] Songs count --- assets/js/phoenix_live_view | 1 - lib/live_beats_web/live/profile_live.ex | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) delete mode 120000 assets/js/phoenix_live_view diff --git a/assets/js/phoenix_live_view b/assets/js/phoenix_live_view deleted file mode 120000 index 41aeefb..0000000 --- a/assets/js/phoenix_live_view +++ /dev/null @@ -1 +0,0 @@ -/Users/chris/oss/phoenix_live_view/assets/js/phoenix_live_view \ No newline at end of file diff --git a/lib/live_beats_web/live/profile_live.ex b/lib/live_beats_web/live/profile_live.ex index 00ddea0..76fa99e 100644 --- a/lib/live_beats_web/live/profile_live.ex +++ b/lib/live_beats_web/live/profile_live.ex @@ -16,7 +16,7 @@ defmodule LiveBeatsWeb.ProfileLive do <%= if @owns_profile? do %> (you) <% end %> - <%= @songs_count %> + – <%= ngettext("%{count} song", "%{count} songs", @songs_count) %> <.link href={@profile.external_homepage_url} target="_blank" class="text-sm text-gray-600"> <.icon name={:code} /> <%= url_text(@profile.external_homepage_url) %> @@ -91,7 +91,7 @@ defmodule LiveBeatsWeb.ProfileLive do <:col :let={{_id, song}} label="Title" - class!="px-6 py-3 text-sm font-medium text-gray-900 md:min-w-[20rem] cursor-pointer" + class!="px-6 py-3 text-sm font-medium text-gray-900 min-w-[200px] md:min-w-[20rem] cursor-pointer" > @@ -122,7 +122,7 @@ defmodule LiveBeatsWeb.ProfileLive do label="Attribution" class="max-w-5xl break-words text-gray-600 font-light" > - <%= song.position %> + <%= song.attribution %> <:col :let={{_id, song}} label="Duration"><%= MP3Stat.to_mmss(song.duration) %> <:col :let={{_id, song}} :if={@owns_profile?} label="">