Don't print nav bar when $last_page is undef
This commit is contained in:
parent
c4d05dcb05
commit
d6d1eddfbd
|
@ -19,7 +19,7 @@
|
||||||
</article>
|
</article>
|
||||||
<% } =%>
|
<% } =%>
|
||||||
</div>
|
</div>
|
||||||
<% unless ($last_page == 1) { =%>
|
<% if ($last_page && $last_page != 1) { =%>
|
||||||
<nav>
|
<nav>
|
||||||
<%= pagination $this_page, $last_page, '?page={page}' %>
|
<%= pagination $this_page, $last_page, '?page={page}' %>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user