]> source.dussan.org Git - sonarqube.git/commitdiff
Update issues widget in order to point to the issues page
authorStas Vilchik <vilchiks@gmail.com>
Wed, 7 Jan 2015 13:21:05 +0000 (14:21 +0100)
committerStas Vilchik <vilchiks@gmail.com>
Wed, 7 Jan 2015 13:54:23 +0000 (14:54 +0100)
server/sonar-web/src/main/webapp/WEB-INF/app/views/project/widgets/issues/_issues_list.html.erb

index 64dc71cabc855a5bafba20c59554324d4a742136..d97b4041c99a5a65bb2f55a97930ad4df67674de 100644 (file)
@@ -9,8 +9,6 @@
    if search_options['filter']
      results = Internal.issues.execute(search_options['filter'].to_i, search_options)
    else
-     search_options['sort'] = 'FILE_LINE'
-     search_options['asc'] = 'false'
      results = Internal.issues.execute(search_options)
    end
    issues = results.issues()
@@ -54,7 +52,7 @@
       <tr class="<%= cycle 'even', 'odd', :name => ('issues-widget-list-' + widget_id) -%>">
         <td><i class="icon-severity-<%= issue.severity.downcase -%>"></i></td>
         <td>
-          <a class="rule-modal" href="#" onclick="return openModalWindow('<%= url_for :controller => 'issue', :action => 'show', :id => issue.key, :modal => true -%>', {'width': 800})">
+          <a class="js-issue-link" href="<%= url_for_issues(search_options.merge({:issues => issue.key}).except('pageSize', 'pageIndex', 'table_limit', 'widget_id')) -%>">
             <%= h truncate(issue.message, :length => 100) -%></a>
           <% if last_comment && last_comment.userLogin() %>
             <div class="comment-excerpt">