diff --git a/src/main/twirl/gitbucket/core/pulls/commits.scala.html b/src/main/twirl/gitbucket/core/pulls/commits.scala.html
index cfe67ed..8a86392 100644
--- a/src/main/twirl/gitbucket/core/pulls/commits.scala.html
+++ b/src/main/twirl/gitbucket/core/pulls/commits.scala.html
@@ -27,13 +27,13 @@
@link(commit.description.get, repository)
}
- @user(commit.authorName, commit.authorEmailAddress, "username")
- authored @helper.html.datetimeago(commit.authorTime)
@if(commit.isDifferentFromAuthor) {
+ @user(commit.authorName, commit.authorEmailAddress, "username")
+ authored @helper.html.datetimeago(commit.authorTime)
- @user(commit.committerName, commit.committerEmailAddress, "username")
- committed @helper.html.datetimeago(commit.authorTime)
}
+ @user(commit.committerName, commit.committerEmailAddress, "username")
+ committed @helper.html.datetimeago(commit.commitTime)
diff --git a/src/main/twirl/gitbucket/core/repo/commits.scala.html b/src/main/twirl/gitbucket/core/repo/commits.scala.html
index ac16baa..d5ca9f0 100644
--- a/src/main/twirl/gitbucket/core/repo/commits.scala.html
+++ b/src/main/twirl/gitbucket/core/repo/commits.scala.html
@@ -56,14 +56,14 @@
@if(commit.description.isDefined){
@link(commit.description.get, repository)
}
-
- @user(commit.authorName, commit.authorEmailAddress, "username")
-
authored @helper.html.datetimeago(commit.authorTime)
+
@if(commit.isDifferentFromAuthor) {
+ @user(commit.authorName, commit.authorEmailAddress, "username")
+ authored @helper.html.datetimeago(commit.authorTime)
- @user(commit.committerName, commit.committerEmailAddress, "username")
- committed @helper.html.datetimeago(commit.authorTime)
}
+ @user(commit.committerName, commit.committerEmailAddress, "username")
+ committed @helper.html.datetimeago(commit.commitTime)