marshall_webapp.templates.commonelements.pagination.ticket_table_pagination module ∞
The pagintation for pages displaying a ticket table
- Author
David Young
-
ticket_table_pagination
(log, totalTickets, request, limit, previousPageStart, numberOfButtonsToDisplay=5)[source] ∞ Key Arguments
log
– the loggertotalTickets
– the total number of tickets to be listed in paginationrequest
– the requestlimit
– the limit of tickets to display on the pagepreviousPageStart
– the index of the previous page’s first ticketnumberOfButtonsToDisplay
– the total number of pagination buttons to display on any one page (must be odd number)
Return
pagination
– the pagination to be displayed