]> source.dussan.org Git - redmine.git/commitdiff
#pagination_links_each yields all links!
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 17 Dec 2012 20:27:56 +0000 (20:27 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 17 Dec 2012 20:27:56 +0000 (20:27 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11034 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/pagination.rb

index afb349f8658f2bf6fe7161b2ced626a14b6a08de..eb1782d6d10a0ef4ee336b65c6e6019eb5143147 100644 (file)
@@ -186,7 +186,7 @@ module Redmine
           if page == paginator.page
             html << page.to_s
           else
-            html << link_to(page.to_s, page_param => page)
+            html << yield(page.to_s, page_param => page)
           end
           html << ' '
           previous = page
@@ -194,7 +194,7 @@ module Redmine
 
         if paginator.next_page
           # \xc2\xbb(utf-8) = &#187;
-          html << link_to(l(:label_next) + " \xc2\xbb", page_param => paginator.next_page) + ' '
+          html << yield(l(:label_next) + " \xc2\xbb", page_param => paginator.next_page) + ' '
         end
 
         html << "(#{paginator.first_item}-#{paginator.last_item}/#{paginator.item_count}) "