Updating pagination erb to work with BS 2 and 3