Permalink
Browse files

- Slightly less options on pagination

  • Loading branch information...
1 parent 214cde9 commit 6b5a675de8a67cca9a6de61e0e3fdb49dabf0fda @sswires sswires committed Apr 7, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 browse.php
View
@@ -16,9 +16,10 @@
<div class="pagination pagination-right">
<ul>
<li<?php if($page == 1):?> class="disabled"<?php endif; ?>><a href="?p=<?php echo $page-1; ?>">&laquo;</a></li>
- <?php for( $i = max(1,$page-5); $i <= min( ceil($count[0][0]/5), $page+5 ); $i++ ): ?>
+ <?php for( $i = max(1,$page-2); $i <= min( ceil($count[0][0]/5), $page+2 ); $i++ ): ?>
<li<?php if($page == $i): ?> class="active"<?php endif; ?>><a href="?p=<?php echo $i; ?>"><?php echo $i; ?></a></li>
<?php endfor; ?>
+ <li<?php if($page >= ceil($count[0][0]/5)):?> class="disabled"<?php endif; ?>><a href="?p=<?php echo $page+1; ?>">&raquo;</a></li>
</ul>
</div>

0 comments on commit 6b5a675

Please sign in to comment.