Class: TinyMCELinkRenderer

Inherits:
WillPaginate::LinkRenderer
  • Object
show all
Defined in:
lib/tiny_mce_link_renderer.rb

Instance Method Summary collapse

Instance Method Details



2
3
4
5
6
7
8
9
# File 'lib/tiny_mce_link_renderer.rb', line 2

def page_link_or_span(page, span_class = 'current', text = nil)
  text ||= page.to_s
  if page and page != current_page
    @template.link_to_remote text, :url => url_for(page), :method => :get, :update => 'dynamic_images_list'
  else
    @template. :span, text, :class => span_class
  end
end