Skip to content

Commit

Permalink
Fix pagination condition to ensure navigation only displays when page…
Browse files Browse the repository at this point in the history
…s are present
  • Loading branch information
andrew committed Jan 8, 2025
1 parent 2bed0e9 commit 9a1bb65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/hosts/topic.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<div class='row'>
<div class='col-md-8'>
<%= render @repositories %>
<%== pagy_bootstrap_nav(@pagy) if @pagy.pages > 1 %>
<%== pagy_bootstrap_nav(@pagy) if @pagy.pages && @pagy.pages > 1 %>
</div>
<div class='col-md-4'>
<div class="card">
Expand Down

0 comments on commit 9a1bb65

Please sign in to comment.