From 91cd192fb79069e991986ba9a9ea0e94a12ac275 Mon Sep 17 00:00:00 2001 From: Fabrice Bellingard Date: Thu, 8 Dec 2011 18:39:51 +0100 Subject: [PATCH] SONAR-2795 Remove link on "Next" if page index is max (20) --- .../src/main/webapp/WEB-INF/app/views/filters/_list.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/filters/_list.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/filters/_list.html.erb index c164cfbadea..9adf1d8c247 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/filters/_list.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/filters/_list.html.erb @@ -52,8 +52,8 @@ <% for index in 1..max_pages %> <%= link_to_unless index==@filter_context.page_id, index.to_s, {:overwrite_params => {:page_id => index}} %> <% end %> - <%= '...' if @filter_context.page_count > 20 -%> - <%= link_to_if @filter_context.page_id<@filter_context.page_count, message('paging_next'), {:overwrite_params => {:page_id => 1+@filter_context.page_id}} %> + <%= '... ' if @filter_context.page_count>20 -%> + <%= link_to_if @filter_context.page_id<20, message('paging_next'), {:overwrite_params => {:page_id => 1+@filter_context.page_id}} %> <% end %> <% if @filter.projects_homepage? %> -- 2.39.5