Skip to content

Commit

Permalink
Clean up spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
themightychris committed Aug 5, 2017
1 parent cca855d commit 9a80412
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions html-templates/subtemplates/paging.tpl
Expand Up @@ -9,21 +9,19 @@
<span aria-hidden="true">&laquo;</span>
</a>
</li>

{foreach item=page from=range(1,ceil($total/$pageSize))}
{math "($page-1)*$pageSize" assign=offset}
<li class="{if $.get.offset == $offset}active{/if}"><a href="?{refill_query limit=$pageSize offset=$offset}">{$page}</a></li>
{/foreach}

{if $.get.offset < $total - $pageSize}
<li>
<a href="?{refill_query limit=$pageSize offset=$nextOffset}" aria-label="Next">
<span aria-hidden="true">&raquo;</span>
</a>
</li>
{/if}


{/if}
</ul>
</nav>
Expand Down

0 comments on commit 9a80412

Please sign in to comment.