Fixes #405 - Hide pagination buttons when they don't make sense.

If you have no results, or your results fit on a single page hide the "prev" and "next" buttons.

r? @magsout