From becae21fa03cf6c7dfb6cd5bc2710b816ba612d5 Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Mon, 1 Dec 2014 09:33:21 +0100 Subject: [PATCH] SONAR-5718 Fix syntax highlighting in the issues page --- .../hbs/issues/issues-component-viewer.hbs | 32 ------------------- .../main/hbs/source-viewer/source-viewer.hbs | 2 +- .../js/source-viewer/popups/coverage-popup.js | 1 - 3 files changed, 1 insertion(+), 34 deletions(-) delete mode 100644 server/sonar-web/src/main/hbs/issues/issues-component-viewer.hbs 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); -- 2.39.5