Name sections in stats page

This commit is contained in:
Claudio Ortolina
2024-10-22 18:35:01 +01:00
parent bb74057c31
commit 0d7b363da8
2 changed files with 27 additions and 3 deletions
@@ -1,4 +1,7 @@
<div>
<h1 class="mt-5 text-base lg:text-2xl text-gray-900 font-semibold">
<%= gettext("Basics") %>
</h1>
<dl class="mt-5 grid grid-cols-2 gap-5 sm:grid-cols-5">
<div
class="relative overflow-hidden rounded-lg bg-white px-4 pb-3 pt-5 shadow sm:px-6 sm:pt-6 col-span-2 sm:col-span-3 cursor-pointer"
@@ -57,6 +60,9 @@
</div>
<div>
<h1 class="mt-5 text-base lg:text-2xl text-gray-900 font-semibold">
<%= gettext("Formats") %>
</h1>
<dl class="mt-5 grid divide-y divide-gray-200 overflow-hidden rounded-lg bg-white shadow grid-cols-5 md:divide-x md:divide-y-0">
<div :for={{format, count} <- @collection_count_by_format} class="px-4 py-5 sm:p-6">
<dt class="text-base max-sm:text-xs font-normal text-gray-900 break-keep">
@@ -74,6 +80,9 @@
</div>
<div>
<h1 class="mt-5 text-base lg:text-2xl text-gray-900 font-semibold">
<%= gettext("Types") %>
</h1>
<dl class="mt-5 grid divide-y divide-gray-200 overflow-hidden rounded-lg bg-white shadow grid-cols-6 md:divide-x md:divide-y-0">
<div :for={{type, count} <- @collection_count_by_type} class="px-4 py-5 sm:p-6">
<dt class="text-base max-sm:text-xs font-normal text-gray-900 break-keep">
+18 -3
View File
@@ -315,17 +315,32 @@ msgstr ""
msgid "Login"
msgstr ""
#: lib/music_library_web/controllers/stats_html/index.html.heex:14
#: lib/music_library_web/controllers/stats_html/index.html.heex:17
#, elixir-autogen, elixir-format
msgid "Latest purchase"
msgstr ""
#: lib/music_library_web/controllers/stats_html/index.html.heex:35
#: lib/music_library_web/controllers/stats_html/index.html.heex:38
#, elixir-autogen, elixir-format
msgid "Total collection"
msgstr ""
#: lib/music_library_web/controllers/stats_html/index.html.heex:47
#: lib/music_library_web/controllers/stats_html/index.html.heex:50
#, elixir-autogen, elixir-format
msgid "Total wishlist"
msgstr ""
#: lib/music_library_web/controllers/stats_html/index.html.heex:3
#, elixir-autogen, elixir-format
msgid "Basics"
msgstr ""
#: lib/music_library_web/controllers/stats_html/index.html.heex:64
#, elixir-autogen, elixir-format
msgid "Formats"
msgstr ""
#: lib/music_library_web/controllers/stats_html/index.html.heex:84
#, elixir-autogen, elixir-format
msgid "Types"
msgstr ""