summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-12-17 20:27:56 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-12-17 20:27:56 +0000
commit352ec0e9e4641d55161bb0f119f820f49cb5dbd3 (patch)
treec640e742daafd5cdc7e78cf0b629dd2510c7803f /lib
parent1a587370040be061026d8130d9530895f120080e (diff)
downloadredmine-352ec0e9e4641d55161bb0f119f820f49cb5dbd3.tar.gz
redmine-352ec0e9e4641d55161bb0f119f820f49cb5dbd3.zip
#pagination_links_each yields all links!
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11034 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r--lib/redmine/pagination.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/redmine/pagination.rb b/lib/redmine/pagination.rb
index afb349f86..eb1782d6d 100644
--- a/lib/redmine/pagination.rb
+++ b/lib/redmine/pagination.rb
@@ -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}) "