aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-server
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@gmail.com>2013-07-18 11:39:45 +0200
committerJulien Lancelot <julien.lancelot@gmail.com>2013-07-18 11:39:45 +0200
commit5507fbd0fa81481eb5976161c2e50035f711303e (patch)
treeb3915e59e707a2ed0d10f73af21509a67f7184ce /sonar-server
parentb7a52c267be5197e270db57986fd1417409f4eb3 (diff)
downloadsonarqube-5507fbd0fa81481eb5976161c2e50035f711303e.tar.gz
sonarqube-5507fbd0fa81481eb5976161c2e50035f711303e.zip
Di not display bulk change when there's no issues
Diffstat (limited to 'sonar-server')
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/views/resource/_options.html.erb2
1 files changed, 2 insertions, 0 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/resource/_options.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/resource/_options.html.erb
index 1a1ebd9a442..dffc5f986ac 100644
--- a/sonar-server/src/main/webapp/WEB-INF/app/views/resource/_options.html.erb
+++ b/sonar-server/src/main/webapp/WEB-INF/app/views/resource/_options.html.erb
@@ -58,10 +58,12 @@
<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 %>