Class: TinyMCELinkRenderer
- Inherits:
-
WillPaginate::LinkRenderer
- Object
- WillPaginate::LinkRenderer
- TinyMCELinkRenderer
- Defined in:
- lib/tiny_mce_link_renderer.rb
Instance Method Summary collapse
Instance Method Details
#page_link_or_span(page, span_class = 'current', text = nil) ⇒ Object
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.content_tag :span, text, :class => span_class end end |