Files
music_library/lib/music_library_web/controllers/stats_html.ex
T
2024-10-02 21:26:21 +01:00

13 lines
325 B
Elixir

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