diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2014-12-01 09:33:21 +0100 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2014-12-01 09:33:21 +0100 |
commit | becae21fa03cf6c7dfb6cd5bc2710b816ba612d5 (patch) | |
tree | 29ef815518094ec2087251c832156323c5e54f63 | |
parent | 089ae2d9ab035c0634c030f57f9ceff71f9f5b74 (diff) | |
download | sonarqube-becae21fa03cf6c7dfb6cd5bc2710b816ba612d5.tar.gz sonarqube-becae21fa03cf6c7dfb6cd5bc2710b816ba612d5.zip |
SONAR-5718 Fix syntax highlighting in the issues page
3 files changed, 1 insertions, 34 deletions
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 @@ -<div class="issues-workspace-component-viewer-code code-source" style="min-height: 100vh;"> - {{#if hasSourceBefore}} - <i class="spinner js-component-viewer-source-before"></i> - {{/if}} - - <table class="code"> - <tr class="row hidden" data-line-number="0"> - <td class="stat"> </td> - {{#if hasSCM}} - <td class="stat scm"> </td> - {{/if}} - <td class="line"></td> - </tr> - {{#each source}} - <tr class="row" data-line-number="{{line}}"> - <td class="stat">{{line}}</td> - {{#if ../hasSCM}} - <td class="stat scm"> - {{#ifSCMChanged2 ../source line}} - <span class="scm-author" title="{{dt scmDate}}
{{scmAuthor}}">{{scmAuthor}}</span> - {{/ifSCMChanged2}} - </td> - {{/if}} - <td class="line"><pre>{{{code}}}</pre></td> - </tr> - {{/each}} - </table> - - {{#if hasSourceAfter}} - <i class="spinner js-component-viewer-source-after"></i> - {{/if}} -</div> 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 @@ </td> {{/each}} - <td class="source-line-code" data-line-number="{{line}}"> + <td class="source-line-code code" data-line-number="{{line}}"> {{#notNull code}} <pre>{{#if code}}{{{code}}}{{else}} {{/if}}</pre> {{/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); |