Display type stats
This commit is contained in:
@@ -54,3 +54,20 @@
|
||||
</div>
|
||||
</dl>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<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} <- @records_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">
|
||||
<%= Record.type_long_label(type) %>
|
||||
</dt>
|
||||
<dd class="mt-1 flex items-baseline justify-between md:block lg:flex">
|
||||
<div class="flex items-baseline text-2xl font-semibold">
|
||||
<a href={~p"/records?query=type:#{type}"}>
|
||||
<%= count %>
|
||||
</a>
|
||||
</div>
|
||||
</dd>
|
||||
</div>
|
||||
</dl>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user