summaryrefslogtreecommitdiffstats
path: root/sonar-server/src/main/hbs/component-viewer/source.hbs
diff options
context:
space:
mode:
Diffstat (limited to 'sonar-server/src/main/hbs/component-viewer/source.hbs')
-rw-r--r--sonar-server/src/main/hbs/component-viewer/source.hbs6
1 files changed, 4 insertions, 2 deletions
diff --git a/sonar-server/src/main/hbs/component-viewer/source.hbs b/sonar-server/src/main/hbs/component-viewer/source.hbs
index 7f290b8cbc2..b4f9c67709f 100644
--- a/sonar-server/src/main/hbs/component-viewer/source.hbs
+++ b/sonar-server/src/main/hbs/component-viewer/source.hbs
@@ -30,8 +30,10 @@
{{#if ../../settings.scm}}
<td class="stat {{#if scm}}scm{{/if}}">
{{#if scm}}
- <span class="scm-date">{{scm.date}}</span>
- <span class="scm-author" title="{{scm.author}}">{{scm.author}}</span>
+ {{#ifSCMChanged ../../../../source ../../../lineNumber}}
+ <span class="scm-date">{{scm.date}}</span>
+ <span class="scm-author" title="{{scm.author}}">{{scm.author}}</span>
+ {{/ifSCMChanged}}
{{/if}}
</td>
{{/if}}