]> source.dussan.org Git - sonarqube.git/commitdiff
fix source viewer details window
authorStas Vilchik <vilchiks@gmail.com>
Thu, 22 Oct 2015 08:16:24 +0000 (10:16 +0200)
committerStas Vilchik <vilchiks@gmail.com>
Thu, 22 Oct 2015 08:19:18 +0000 (10:19 +0200)
server/sonar-web/src/main/js/components/source-viewer/main.js
server/sonar-web/src/main/js/components/source-viewer/partials.js [new file with mode: 0644]

index c0e633e2fca74f269ef5220896300f06a716ef9e..a189f61aff682ec1b75bb6daf3df69b2dd31af52 100644 (file)
@@ -14,6 +14,7 @@ import LineActionsPopupView from './popups/line-actions-popup';
 import highlightLocations from './helpers/code-with-issue-locations-helper';
 import Template from './templates/source-viewer.hbs';
 import IssueLocationTemplate from './templates/source-viewer-issue-location.hbs';
+import './partials';
 
 var HIGHLIGHTED_ROW_CLASS = 'source-line-highlighted';
 
diff --git a/server/sonar-web/src/main/js/components/source-viewer/partials.js b/server/sonar-web/src/main/js/components/source-viewer/partials.js
new file mode 100644 (file)
index 0000000..8359749
--- /dev/null
@@ -0,0 +1,16 @@
+import Handlebars from 'hbsfy/runtime';
+import AllMeasuresPartial from './templates/measures/_source-viewer-measures-all.hbs';
+import CoveragePartial from './templates/measures/_source-viewer-measures-coverage.hbs';
+import DuplicationsPartial from './templates/measures/_source-viewer-measures-duplications.hbs';
+import IssuesPartial from './templates/measures/_source-viewer-measures-issues.hbs';
+import LinesPartial from './templates/measures/_source-viewer-measures-lines.hbs';
+import TestCasesPartial from './templates/measures/_source-viewer-measures-test-cases.hbs';
+import TestsPartial from './templates/measures/_source-viewer-measures-tests.hbs';
+
+Handlebars.registerPartial('_source-viewer-measures-all', AllMeasuresPartial);
+Handlebars.registerPartial('_source-viewer-measures-coverage', CoveragePartial);
+Handlebars.registerPartial('_source-viewer-measures-duplications', DuplicationsPartial);
+Handlebars.registerPartial('_source-viewer-measures-issues', IssuesPartial);
+Handlebars.registerPartial('_source-viewer-measures-lines', LinesPartial);
+Handlebars.registerPartial('_source-viewer-measures-test-cases', TestCasesPartial);
+Handlebars.registerPartial('_source-viewer-measures-tests', TestsPartial);