Show record count by format in stats dashboard
This commit is contained in:
@@ -2,4 +2,11 @@ defmodule MusicLibraryWeb.StatsHTML do
|
||||
use MusicLibraryWeb, :html
|
||||
|
||||
embed_templates "stats_html/*"
|
||||
|
||||
defp format_records_count(records_count_by_format) do
|
||||
Enum.map(records_count_by_format, fn {format, count} ->
|
||||
Integer.to_string(count) <> " " <> Atom.to_string(format)
|
||||
end)
|
||||
|> Enum.join(", ")
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user