diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2014-07-21 10:07:33 +0200 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2014-07-21 10:07:33 +0200 |
commit | 1b2d90fef36b8af7892d43ab19f390770f91837a (patch) | |
tree | 1f3499ba209f7913a0807d59f8da06a7e8054a0e /plugins | |
parent | 53c29de7a303533044b05d6d23dffdd624728661 (diff) | |
download | sonarqube-1b2d90fef36b8af7892d43ab19f390770f91837a.tar.gz sonarqube-1b2d90fef36b8af7892d43ab19f390770f91837a.zip |
SONAR-5340 Quality Gate should not be shown in "Description" widget on Views or Developers
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/description.html.erb | 19 |
1 files changed, 10 insertions, 9 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 e0c8c4103e4..3e9a2b3a64a 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 @@ -45,14 +45,15 @@ end %> <% - using_default=false - quality_gate=Property.value('sonar.qualitygate', @resource && @resource.id, nil) - unless quality_gate - quality_gate=Property.value('sonar.qualitygate', nil, nil) - using_default=false || quality_gate - end - if quality_gate - qgate = Internal.quality_gates.get(quality_gate.to_i) + unless @resource.qualifier == 'DEV' or @resource.qualifier == 'SVW' + using_default=false + quality_gate=Property.value('sonar.qualitygate', @resource && @resource.id, nil) + unless quality_gate + quality_gate=Property.value('sonar.qualitygate', nil, nil) + using_default=false || quality_gate + end + if quality_gate + qgate = Internal.quality_gates.get(quality_gate.to_i) %> <p class="description-widget-description"> <span id="resource_qgate"> @@ -63,7 +64,7 @@ <% end %> </span> </p> - <% end %> + <% end end %> <% unless @project.project_links.empty? %> <ul class="description-widget-links"> |