From 2a4a8e849680a21f5c57313b02d0d27b4714d555 Mon Sep 17 00:00:00 2001 From: Julien Lancelot Date: Tue, 9 Jul 2013 09:44:19 +0200 Subject: SONAR-4474 Display only unresolved issues and display link to issues in the result number --- .../webapp/WEB-INF/app/views/drilldown/issues.html.erb | 1 + .../main/webapp/WEB-INF/app/views/issues/_list.html.erb | 16 ++++++++++------ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/drilldown/issues.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/drilldown/issues.html.erb index 2b3c0f72e0e..fff05a09ccb 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/drilldown/issues.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/drilldown/issues.html.erb @@ -189,6 +189,7 @@ function displayIssues(){ var params = { pageSize: '10', + resolved: 'false', <% if rids.empty? %> componentRoots: '<%= @snapshot.project.key %>', <% else %> diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/issues/_list.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/issues/_list.html.erb index 5f83ac2ece2..5140bb349b8 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/issues/_list.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/issues/_list.html.erb @@ -87,13 +87,17 @@ end %> - <%= paginate_java(@issues_result.paging, :colspan => colspan, :id => 'issue-filter-foot', :include_loading_icon => true) { |label, page_id| - if @ajax_mode - link_to_function label, "refreshList('#{@issues_query.sort}', #{@issues_query.asc}, #{page_id})" - else - link_to(label, params.merge({:pageIndex => page_id})) + <%= if @ajax_mode + paginate_java(@issues_result.paging, :colspan => colspan, :id => 'issue-filter-foot', :include_loading_icon => true, + :url_results => url_for({:controller => 'issues', :action => 'search'}.merge(params))) { |label, page_id| + link_to_function label, "refreshList('#{@issues_query.sort}', #{@issues_query.asc}, #{page_id})" + } + else + paginate_java(@issues_result.paging, :colspan => colspan, :id => 'issue-filter-foot', :include_loading_icon => true) { |label, page_id| + link_to(label, params.merge({:pageIndex => page_id})) + } end - } -%> + %> <% -- cgit v1.2.3