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 logger

  • totalTickets – the total number of tickets to be listed in pagination

  • request – the request

  • limit – the limit of tickets to display on the page

  • previousPageStart – the index of the previous page’s first ticket

  • numberOfButtonsToDisplay – the total number of pagination buttons to display on any one page (must be odd number)

Return

  • pagination – the pagination to be displayed