I think this should be put into a `crashstats/base/templates/macros/pagination.html` file instead.