Update generic_list.html

Centralize pagination