]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5718 Fix syntax highlighting in the issues page
authorStas Vilchik <vilchiks@gmail.com>
Mon, 1 Dec 2014 08:33:21 +0000 (09:33 +0100)
committerStas Vilchik <vilchiks@gmail.com>
Mon, 1 Dec 2014 08:33:21 +0000 (09:33 +0100)
server/sonar-web/src/main/hbs/issues/issues-component-viewer.hbs [deleted file]
server/sonar-web/src/main/hbs/source-viewer/source-viewer.hbs
server/sonar-web/src/main/js/source-viewer/popups/coverage-popup.js

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 (file)
index 0471c49..0000000
+++ /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>
index 2d1cd025d608b9ea6079a60d561bda24094a1966..f16ed24cf8234bc561645050e40d6a8f128723b3 100644 (file)
@@ -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}}
index fdf7b6396f5dba1bb2bbc373b83fc992abe132a5..171a0955bfa1c8d993e609f3f147fc9a42a818b3 100644 (file)
@@ -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);