Don't display pagination links when there's only 1 page
This commit is contained in:
@@ -11,7 +11,11 @@ defmodule MusicLibraryWeb.Pagination do
|
||||
assigns = assign(assigns, :page_links, page_links)
|
||||
|
||||
~H"""
|
||||
<div id={@id} class="flex items-center justify-between bg-white px-4 py-6 mb-4">
|
||||
<div
|
||||
:if={@page_links.total_pages > 1}
|
||||
id={@id}
|
||||
class="flex items-center justify-between bg-white px-4 py-6 mb-4"
|
||||
>
|
||||
<%!-- Only on smallest viewport --%>
|
||||
<div class={[
|
||||
"flex flex-1 sm:hidden",
|
||||
|
||||
Reference in New Issue
Block a user