From 81afea350d580e13d7ae6a697bb91756ac5abeca Mon Sep 17 00:00:00 2001 From: Naoki Takezoe Date: Thu, 19 May 2016 12:01:41 +0900 Subject: [PATCH] (refs #1195)Fix date in the commit list --- src/main/twirl/gitbucket/core/pulls/commits.scala.html | 8 ++++---- src/main/twirl/gitbucket/core/repo/commits.scala.html | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/main/twirl/gitbucket/core/pulls/commits.scala.html b/src/main/twirl/gitbucket/core/pulls/commits.scala.html index cfe67edbf..8a863926d 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 @@ }
- @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 ac16baa79..d5ca9f0b6 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){ } -
- @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)