mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-05 13:05:50 +01:00
Fix parent commit id presentation.
This commit is contained in:
@@ -21,7 +21,8 @@
|
||||
<tr>
|
||||
<td>
|
||||
<a href="@path/@commit.committer" class="username">@commit.committer</a> <span class="description">@helpers.datetime(commit.time)</span>
|
||||
<div class="pull-right align-right monospace small">
|
||||
<div class="pull-right monospace small" style="text-align: right;">
|
||||
<div>
|
||||
@if(commit.parents.size == 0){
|
||||
<span class="description">0 parent</span>
|
||||
}
|
||||
@@ -30,12 +31,16 @@
|
||||
<a href="@path/@repository.owner/@repository.name/commit/@commit.parents(0)" class="commit-id">@commit.parents(0).substring(0, 7)</a>
|
||||
}
|
||||
<span class="description">commit</span> @commit.id
|
||||
</div>
|
||||
@if(commit.parents.size > 1){
|
||||
<br>
|
||||
<span class="description">@commit.parents.size parent</span>
|
||||
@commit.parents.map { parent =>
|
||||
@parent
|
||||
}.mkString(" + ")
|
||||
<div>
|
||||
<span class="description">@commit.parents.size parents
|
||||
@commit.parents.zipWithIndex.map { case (parent, i) =>
|
||||
@if(i != 0){ + }
|
||||
<a href="@path/@repository.owner/@repository.name/commit/@parent" class="commit-id">@parent.substring(0, 7)</a>
|
||||
}
|
||||
</span>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
</td>
|
||||
|
||||
Reference in New Issue
Block a user