diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2015-10-28 10:25:13 +0100 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2015-10-30 10:46:02 +0100 |
commit | 1e5830fb652fda2da6f18460c92f82d93c52130c (patch) | |
tree | 8383c08cc17ed71555b1cd8468292968f9bf07f1 /server/sonar-web/src/main/webapp | |
parent | a3528799883487e180ce90985e96cf87281e645f (diff) | |
download | sonarqube-1e5830fb652fda2da6f18460c92f82d93c52130c.tar.gz sonarqube-1e5830fb652fda2da6f18460c92f82d93c52130c.zip |
SONAR-6331 improve UX of the project overview page
Diffstat (limited to 'server/sonar-web/src/main/webapp')
-rw-r--r-- | server/sonar-web/src/main/webapp/WEB-INF/app/views/overview/index.html.erb | 54 |
1 files changed, 1 insertions, 53 deletions
diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/views/overview/index.html.erb b/server/sonar-web/src/main/webapp/WEB-INF/app/views/overview/index.html.erb index c86e998a518..b9447a88eb5 100644 --- a/server/sonar-web/src/main/webapp/WEB-INF/app/views/overview/index.html.erb +++ b/server/sonar-web/src/main/webapp/WEB-INF/app/views/overview/index.html.erb @@ -119,61 +119,9 @@ var gate = null; <% end %> - var measures = { - <% if @snapshot %> - - // issues - <% if @snapshot.measure('sqale_rating') %> - sqaleRating: '<%= @snapshot.measure('sqale_rating').value -%>', - <% else %> - sqaleRating: 'A', - <% end %> - - // coverage - <% if @snapshot.measure('overall_coverage') %> - coverage: '<%= @snapshot.measure('overall_coverage').value -%>', - <% end %> - <% if @snapshot.measure('tests') %> - tests: '<%= @snapshot.measure('tests').value -%>', - <% end %> - - // duplications - duplications: '<%= @snapshot.measure('duplicated_lines_density').value -%>', - duplicatedLines: '<%= @snapshot.measure('duplicated_lines').value -%>', - duplicatedBlocks: '<%= @snapshot.measure('duplicated_blocks').value -%>', - - // size - lines: '<%= @snapshot.measure('lines').value -%>', - files: '<%= @snapshot.measure('files').value -%>' - <% end %> - }; - - var leak = { - <% if @snapshot %> - // coverage - <% if @snapshot.measure('new_overall_coverage') %> - newCoverage: '<%= @snapshot.measure('new_overall_coverage').variation(1) -%>', - <% end %> - <% if @snapshot.measure('tests') %> - tests: '<%= @snapshot.measure('tests').variation(1) -%>', - <% end %> - - // duplications - duplications: '<%= @snapshot.measure('duplicated_lines_density').variation(1) -%>', - duplicatedLines: '<%= @snapshot.measure('duplicated_lines').variation(1) -%>', - duplicatedBlocks: '<%= @snapshot.measure('duplicated_blocks').variation(1) -%>', - - // size - lines: '<%= @snapshot.measure('lines').variation(1) -%>', - files: '<%= @snapshot.measure('files').variation(1) -%>' - <% end %> - }; - window.sonarqube.overview = { component: component, - gate: gate, - measures: measures, - leak: leak + gate: gate }; })(); </script> |