Sha256: d7d4e78be6bc5ba3f272235fb00bebd77abc4cebd4ba10e982de2a2c4a3c7f32
Contents?: true
Size: 885 Bytes
Versions: 6
Compression:
Stored size: 885 Bytes
Contents
module MobilePagination module Templates def first_page_html "<li> <a title='First Page' href='#{first_page_link}'>First Page</a> | </li>" end def previous_page_html "<li> <a title='Previous Page' href='#{previous_page_link}'>Previous Page</a> | </li>" end def next_page_html "<li> <a title='Next Page' href='#{next_page_link}'>Next Page</a> | </li>" end def last_page_html "<li> <a title='Last Page' href='#{last_page_link}'>Last Page</a> </li>" end def html return '' unless should_paginate? ''.tap do |markup| markup << first_page_html if first_page? markup << previous_page_html if previous_page? markup << next_page_html if next_page? markup << last_page_html if last_page? end end end end
Version data entries
6 entries across 6 versions & 1 rubygems