aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2014-06-26 15:51:38 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2014-06-26 15:52:01 +0200
commit99c310b8b19835af796df48d03c55a3589ffeedb (patch)
treeff32e3f091f78a21928d119be846b5627f6f57b6 /plugins
parentb39244b0bf3315a92960acfa544664680761db0a (diff)
downloadsonarqube-99c310b8b19835af796df48d03c55a3589ffeedb.tar.gz
sonarqube-99c310b8b19835af796df48d03c55a3589ffeedb.zip
Do not display "Profiles:" in the widget "description" when empty
Diffstat (limited to 'plugins')
-rw-r--r--plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/description.html.erb4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/description.html.erb b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/description.html.erb
index 20b6dad36b8..e0c8c4103e4 100644
--- a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/description.html.erb
+++ b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/description.html.erb
@@ -13,6 +13,7 @@
qprofiles_measure = measure(Metric::QUALITY_PROFILES)
if qprofiles_measure && !qprofiles_measure.data.blank?
qprofiles = JSON.parse qprofiles_measure.data
+ if qprofiles.size>0
%>
<p class="description-widget-description">
<%= message('widget.description.profiles') -%>:
@@ -26,7 +27,8 @@
</span>
<% if i < (qprofiles.size - 1) %>,<% end %>
</span>
- <% end %>
+ <% end
+ end %>
</p>
<%
else