diff options
author | Julien Lancelot <julien.lancelot@gmail.com> | 2013-07-09 09:44:19 +0200 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@gmail.com> | 2013-07-09 09:44:19 +0200 |
commit | 2a4a8e849680a21f5c57313b02d0d27b4714d555 (patch) | |
tree | d2b0b869ced953c92b6d664078db55e30e19ee0d | |
parent | 0adf98662685cb5038905c4abc3f4b4ea2649af3 (diff) | |
download | sonarqube-2a4a8e849680a21f5c57313b02d0d27b4714d555.tar.gz sonarqube-2a4a8e849680a21f5c57313b02d0d27b4714d555.zip |
SONAR-4474 Display only unresolved issues and display link to issues in the result number
-rw-r--r-- | sonar-server/src/main/webapp/WEB-INF/app/views/drilldown/issues.html.erb | 1 | ||||
-rw-r--r-- | sonar-server/src/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 %> </tbody> - <%= 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 - } -%> + %> </table> </div> <% |