diff --git a/src/main/twirl/repo/commit.scala.html b/src/main/twirl/repo/commit.scala.html index 8cd58f4..5a70f9b 100644 --- a/src/main/twirl/repo/commit.scala.html +++ b/src/main/twirl/repo/commit.scala.html @@ -21,21 +21,26 @@ @commit.committer @helpers.datetime(commit.time) -
- @if(commit.parents.size == 0){ - 0 parent - } - @if(commit.parents.size == 1){ - 1 parent - @commit.parents(0).substring(0, 7) - } - commit @commit.id +
+
+ @if(commit.parents.size == 0){ + 0 parent + } + @if(commit.parents.size == 1){ + 1 parent + @commit.parents(0).substring(0, 7) + } + commit @commit.id +
@if(commit.parents.size > 1){ -
- @commit.parents.size parent - @commit.parents.map { parent => - @parent - }.mkString(" + ") +
+ @commit.parents.size parents + @commit.parents.zipWithIndex.map { case (parent, i) => + @if(i != 0){ + } + @parent.substring(0, 7) + } + +
}