module AppFrame::PaginationHelper def page_range return nil if count == 0 range_start = (page - 1) * per_page + 1 range_end = (page) * per_page range_end = count if range_end > count "
Displaying #{range_start} - #{range_end} of #{count} in total
".html_safe end end