diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2014-06-26 15:51:38 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2014-06-26 15:52:01 +0200 |
commit | 99c310b8b19835af796df48d03c55a3589ffeedb (patch) | |
tree | ff32e3f091f78a21928d119be846b5627f6f57b6 /plugins | |
parent | b39244b0bf3315a92960acfa544664680761db0a (diff) | |
download | sonarqube-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.erb | 4 |
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 |