added extra classes to template

Now it could be used for [Bootstrap pagination](http://getbootstrap.com/components/#pagination)