Show compact scrobble count
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
defmodule MusicLibraryWeb.StatsLive.Index do
|
defmodule MusicLibraryWeb.StatsLive.Index do
|
||||||
use MusicLibraryWeb, :live_view
|
use MusicLibraryWeb, :live_view
|
||||||
|
|
||||||
|
import MusicLibrary.FormatNumber, only: [to_compact: 1]
|
||||||
import MusicLibraryWeb.ChartComponents
|
import MusicLibraryWeb.ChartComponents
|
||||||
import MusicLibraryWeb.RecordComponents, only: [format_label: 1, type_label: 1]
|
import MusicLibraryWeb.RecordComponents, only: [format_label: 1, type_label: 1]
|
||||||
import MusicLibraryWeb.StatsComponents
|
import MusicLibraryWeb.StatsComponents
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
path={~p"/collection"}
|
path={~p"/collection"}
|
||||||
/>
|
/>
|
||||||
<.counter title={gettext("Total wishlist")} count={@wishlist_count} path={~p"/wishlist"} />
|
<.counter title={gettext("Total wishlist")} count={@wishlist_count} path={~p"/wishlist"} />
|
||||||
<.counter title={gettext("Total scrobbles")} count={@scrobble_count} />
|
<.counter title={gettext("Total scrobbles")} count={to_compact(@scrobble_count)} />
|
||||||
</dl>
|
</dl>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user