Add record count in records list
This commit is contained in:
@@ -477,7 +477,7 @@ defmodule MusicLibraryWeb.CoreComponents do
|
|||||||
|
|
||||||
~H"""
|
~H"""
|
||||||
<div class="px-4 sm:px-0">
|
<div class="px-4 sm:px-0">
|
||||||
<table class="md:w-full mt-11">
|
<table class="md:w-full">
|
||||||
<thead class="text-sm text-left leading-6 text-zinc-500">
|
<thead class="text-sm text-left leading-6 text-zinc-500">
|
||||||
<tr>
|
<tr>
|
||||||
<th :for={col <- @col} class="p-0 pb-4 pr-6 font-normal"><%= col[:label] %></th>
|
<th :for={col <- @col} class="p-0 pb-4 pr-6 font-normal"><%= col[:label] %></th>
|
||||||
|
|||||||
@@ -18,6 +18,11 @@
|
|||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
|
<p class="text-right text-base max-sm:text-xs mt-8">
|
||||||
|
Showing <b><%= Enum.count(@streams.records) %></b>
|
||||||
|
of <b><%= @record_list_params.total_entries %></b>
|
||||||
|
records
|
||||||
|
</p>
|
||||||
<.table
|
<.table
|
||||||
id="records"
|
id="records"
|
||||||
rows={@streams.records}
|
rows={@streams.records}
|
||||||
|
|||||||
Reference in New Issue
Block a user