diff --git a/src/main/scala/util/JGitUtil.scala b/src/main/scala/util/JGitUtil.scala index bd0cc94..ebaef44 100644 --- a/src/main/scala/util/JGitUtil.scala +++ b/src/main/scala/util/JGitUtil.scala @@ -39,9 +39,10 @@ * @param name the file (or directory) name * @param time the last modified time * @param message the last commit message + * @param commitId the last commit id * @param committer the last committer name */ - case class FileInfo(id: ObjectId, isDirectory: Boolean, name: String, time: Date, message: String, committer: String) + case class FileInfo(id: ObjectId, isDirectory: Boolean, name: String, time: Date, message: String, commitId: String, committer: String) /** * The commit data. @@ -184,6 +185,7 @@ name, commits(path).getCommitterIdent.getWhen, commits(path).getShortMessage, + commits(path).getName, commits(path).getCommitterIdent.getName) }.sortWith { (file1, file2) => (file1.isDirectory, file2.isDirectory) match { diff --git a/src/main/twirl/repo/blob.scala.html b/src/main/twirl/repo/blob.scala.html index 57c57d2..5e33563 100644 --- a/src/main/twirl/repo/blob.scala.html +++ b/src/main/twirl/repo/blob.scala.html @@ -21,7 +21,7 @@
-
- @latestCommit.committer
- @helpers.cut(latestCommit.message, 100)
+
+
@helpers.datetime(file.time) |
+ @file.committer] |
+ [ |
---|
@helpers.markdown(content, repository, false, true, true) | -