]> source.dussan.org Git - sonarqube.git/commitdiff
Di not display bulk change when there's no issues
authorJulien Lancelot <julien.lancelot@gmail.com>
Thu, 18 Jul 2013 09:39:45 +0000 (11:39 +0200)
committerJulien Lancelot <julien.lancelot@gmail.com>
Thu, 18 Jul 2013 09:39:45 +0000 (11:39 +0200)
sonar-server/src/main/webapp/WEB-INF/app/views/resource/_options.html.erb

index 1a1ebd9a442820618785eaaaa8ff01369781dab9..dffc5f986acece92bcfe6e9bb44c22632dad7d60 100644 (file)
 
             <td class="<%= 'first' if first -%>"><%= render :partial => 'rules_filter' -%></td>
 
+            <% if @issue_results && @issue_results.issues && !@issue_results.issues.empty? %>
             <td class="<%= 'first' if first -%>">
               <a href="<%= url_for @issues_query_params.merge({:controller => 'issues', :action => 'bulk_change_form', 'componentRoots' => @resource.root ? @resource.root.key : nil}) -%>"
                  class="bulk-change-link open-modal link-action"><%= message('bulk_change') -%></a>
             </td>
+            <% end %>
           <% first=false
              end %>