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