]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-2795 Remove link on "Next" if page index is max (20)
authorFabrice Bellingard <bellingard@gmail.com>
Thu, 8 Dec 2011 17:39:51 +0000 (18:39 +0100)
committerFabrice Bellingard <bellingard@gmail.com>
Thu, 8 Dec 2011 17:39:51 +0000 (18:39 +0100)
sonar-server/src/main/webapp/WEB-INF/app/views/filters/_list.html.erb

index c164cfbadea9e186e774e43fc29127078c873fd4..9adf1d8c247e7310e108e53953b1e8e39a68483f 100644 (file)
@@ -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? %>