# File lib/Borges/Component/BatchedList.rb, line 104 def render_content_on(r) return if max_pages == 1 r.div_with_class('batch') do unless on_first_page? then r.anchor('<<') do previous_page end else r.text('<<') end r.space 0.upto(max_pages - 1) do |i| r.space unless @current_page == i then r.anchor(i + 1) do @current_page = i end else r.bold(i + 1) end end r.space r.space unless on_last_page? then r.anchor('>>') do next_page end else r.text('>>') end end end