diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2015-10-22 10:16:24 +0200 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2015-10-22 10:19:18 +0200 |
commit | b39726bc25677a7d9310b6414a4f5feb3a5ccceb (patch) | |
tree | e66869cd7caed6637df4785e13e66bfc3b1eac12 /server/sonar-web | |
parent | c37f61652aac74a307a61dd63bd8a9873edafe9b (diff) | |
download | sonarqube-b39726bc25677a7d9310b6414a4f5feb3a5ccceb.tar.gz sonarqube-b39726bc25677a7d9310b6414a4f5feb3a5ccceb.zip |
fix source viewer details window
Diffstat (limited to 'server/sonar-web')
-rw-r--r-- | server/sonar-web/src/main/js/components/source-viewer/main.js | 1 | ||||
-rw-r--r-- | server/sonar-web/src/main/js/components/source-viewer/partials.js | 16 |
2 files changed, 17 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/js/components/source-viewer/main.js b/server/sonar-web/src/main/js/components/source-viewer/main.js index c0e633e2fca..a189f61aff6 100644 --- a/server/sonar-web/src/main/js/components/source-viewer/main.js +++ b/server/sonar-web/src/main/js/components/source-viewer/main.js @@ -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 index 00000000000..83597498a67 --- /dev/null +++ b/server/sonar-web/src/main/js/components/source-viewer/partials.js @@ -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); |