aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-server
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2014-01-30 19:53:55 +0600
committerStas Vilchik <vilchiks@gmail.com>2014-01-30 20:06:33 +0600
commitc8c2be6fd7d4dd54a25172b167cdebee2abe4bd0 (patch)
tree54a1d815438cfbcf987b8ebe532de0cfee0e724d /sonar-server
parentdee0dd79b2773739bd3ab50678822423141121b2 (diff)
downloadsonarqube-c8c2be6fd7d4dd54a25172b167cdebee2abe4bd0.tar.gz
sonarqube-c8c2be6fd7d4dd54a25172b167cdebee2abe4bd0.zip
New Issues Page: fix little source display issue
Diffstat (limited to 'sonar-server')
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/views/issues/templates/_issue_detail.hbs.erb2
-rw-r--r--sonar-server/src/main/webapp/javascripts/navigator/handlebars-extensions.js4
2 files changed, 3 insertions, 3 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/issues/templates/_issue_detail.hbs.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/issues/templates/_issue_detail.hbs.erb
index a076e7a4930..4d5263e9d46 100644
--- a/sonar-server/src/main/webapp/WEB-INF/app/views/issues/templates/_issue_detail.hbs.erb
+++ b/sonar-server/src/main/webapp/WEB-INF/app/views/issues/templates/_issue_detail.hbs.erb
@@ -19,7 +19,7 @@
<table id="sources_60" class="sources2 code" cellpadding="0" cellspacing="0">
{{#sources source scm}}
<tr class="row">
- <td class="scm {{#if scm}}revision{{/if}}">
+ <td class="scm {{#if scm}}revision{{/if}}" {{#if first}}style="border-top:none;"{{/if}}>
<span class="date"><a>{{scm.date}}</a></span>
<span class="author">{{scm.author}}</span>
</td>
diff --git a/sonar-server/src/main/webapp/javascripts/navigator/handlebars-extensions.js b/sonar-server/src/main/webapp/javascripts/navigator/handlebars-extensions.js
index 5ba6df2cdc3..4c75c3609b2 100644
--- a/sonar-server/src/main/webapp/javascripts/navigator/handlebars-extensions.js
+++ b/sonar-server/src/main/webapp/javascripts/navigator/handlebars-extensions.js
@@ -108,8 +108,8 @@
}
});
- return sources.reduce(function(prev, current) {
- return prev + options.fn(current);
+ return sources.reduce(function(prev, current, index) {
+ return prev + options.fn(_.extend({ first: index === 0 }, current));
}, '');
});