Fix pagination template broken after migration to Bootstrap 3