13 lines
325 B
Elixir
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
|