From: Stas Vilchik Date: Mon, 1 Dec 2014 08:33:21 +0000 (+0100) Subject: SONAR-5718 Fix syntax highlighting in the issues page X-Git-Tag: 5.0-RC1~143 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=becae21fa03cf6c7dfb6cd5bc2710b816ba612d5;p=sonarqube.git SONAR-5718 Fix syntax highlighting in the issues page --- diff --git a/server/sonar-web/src/main/hbs/issues/issues-component-viewer.hbs b/server/sonar-web/src/main/hbs/issues/issues-component-viewer.hbs deleted file mode 100644 index 0471c49cedc..00000000000 --- a/server/sonar-web/src/main/hbs/issues/issues-component-viewer.hbs +++ /dev/null @@ -1,32 +0,0 @@ -
- {{#if hasSourceBefore}} - - {{/if}} - - - - - {{#if hasSCM}} - - {{/if}} - - - {{#each source}} - - - {{#if ../hasSCM}} - - {{/if}} - - - {{/each}} -
{{line}} - {{#ifSCMChanged2 ../source line}} - {{scmAuthor}} - {{/ifSCMChanged2}} -
{{{code}}}
- - {{#if hasSourceAfter}} - - {{/if}} -
diff --git a/server/sonar-web/src/main/hbs/source-viewer/source-viewer.hbs b/server/sonar-web/src/main/hbs/source-viewer/source-viewer.hbs index 2d1cd025d60..f16ed24cf82 100644 --- a/server/sonar-web/src/main/hbs/source-viewer/source-viewer.hbs +++ b/server/sonar-web/src/main/hbs/source-viewer/source-viewer.hbs @@ -30,7 +30,7 @@ {{/each}} - + {{#notNull code}}
{{#if code}}{{{code}}}{{else}} {{/if}}
{{/notNull}} diff --git a/server/sonar-web/src/main/js/source-viewer/popups/coverage-popup.js b/server/sonar-web/src/main/js/source-viewer/popups/coverage-popup.js index fdf7b6396f5..171a0955bfa 100644 --- a/server/sonar-web/src/main/js/source-viewer/popups/coverage-popup.js +++ b/server/sonar-web/src/main/js/source-viewer/popups/coverage-popup.js @@ -20,7 +20,6 @@ define([ goToFile: function (e) { var key = $(e.currentTarget).data('key'), - line = $(e.currentTarget).data('line'), url = baseUrl + '/component/index#component=' + encodeURIComponent(key) + '&tab=tests', windowParams = 'resizable=1,scrollbars=1,status=1'; window.open(url, key, windowParams);