diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2014-04-14 15:17:35 +0600 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2014-04-14 15:17:35 +0600 |
commit | b2387fc9e0b7074518f9c67b272c946803f3e2bf (patch) | |
tree | e00daf77f45b30012cb80d488a2abecc23a6a751 /plugins/sonar-core-plugin | |
parent | 8e27e9858382aeca29c18b140c3671fcd6643aa2 (diff) | |
download | sonarqube-b2387fc9e0b7074518f9c67b272c946803f3e2bf.tar.gz sonarqube-b2387fc9e0b7074518f9c67b272c946803f3e2bf.zip |
SONAR-3113 Fix bugs of cloud chart
Diffstat (limited to 'plugins/sonar-core-plugin')
-rw-r--r-- | plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/project_file_cloud.html.erb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/project_file_cloud.html.erb b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/project_file_cloud.html.erb index 74d6b4a8cee..5d8d44b8f12 100644 --- a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/project_file_cloud.html.erb +++ b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/project_file_cloud.html.erb @@ -31,7 +31,8 @@ var data = { metrics: { <%= colorMetric.name -%>: { - name: '<%= colorMetric.short_name -%>' + name: '<%= colorMetric.short_name -%>', + direction: <%= colorMetric.direction -%> }, <%= sizeMetric.name -%>: { name: '<%= sizeMetric.short_name -%>' @@ -49,8 +50,8 @@ longName: '<%= escape_javascript row.resource.long_name -%>', qualifier: '<%= escape_javascript row.resource.qualifier -%>', measures: { - <%= colorMetric.name -%>: { val: <%= color ? color.value : 0 -%>, fval: '<%= color ? color.formatted_value : "-" -%>' }, - <%= sizeMetric.name -%>: { val: <%= size ? size.value : 0 -%>, fval: '<%= size ? size.formatted_value : "-" -%>' } + <%= colorMetric.name -%>: { val: <%= color ? color.value : "null" -%>, fval: '<%= color ? color.formatted_value : "-" -%>' }, + <%= sizeMetric.name -%>: { val: <%= size ? size.value : "null" -%>, fval: '<%= size ? size.formatted_value : "-" -%>' } } }, <% end %> |