aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2014-12-01 09:33:21 +0100
committerStas Vilchik <vilchiks@gmail.com>2014-12-01 09:33:21 +0100
commitbecae21fa03cf6c7dfb6cd5bc2710b816ba612d5 (patch)
tree29ef815518094ec2087251c832156323c5e54f63
parent089ae2d9ab035c0634c030f57f9ceff71f9f5b74 (diff)
downloadsonarqube-becae21fa03cf6c7dfb6cd5bc2710b816ba612d5.tar.gz
sonarqube-becae21fa03cf6c7dfb6cd5bc2710b816ba612d5.zip
SONAR-5718 Fix syntax highlighting in the issues page
-rw-r--r--server/sonar-web/src/main/hbs/issues/issues-component-viewer.hbs32
-rw-r--r--server/sonar-web/src/main/hbs/source-viewer/source-viewer.hbs2
-rw-r--r--server/sonar-web/src/main/js/source-viewer/popups/coverage-popup.js1
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">&nbsp;</td>
- {{#if hasSCM}}
- <td class="stat scm">&nbsp;</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}}&#013;{{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}}&nbsp;{{/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);