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.datetime(latestCommit.time) - @helpers.cut(latestCommit.message, 100)
+ @helpers.cut(latestCommit.message, 100)
Raw diff --git a/src/main/twirl/repo/files.scala.html b/src/main/twirl/repo/files.scala.html index e9e6352..411ffab 100644 --- a/src/main/twirl/repo/files.scala.html +++ b/src/main/twirl/repo/files.scala.html @@ -10,53 +10,55 @@ @section / }
- - - + + + } +
-
- @latestCommit.committer - @helpers.cut(latestCommit.message, 100) +
+ + + - - @if(pathList.size > 0){ - - - - - - - } - @files.map { file => - - + @if(pathList.size > 0){ + + + + + + + } + @files.map { file => + + - + - - - - } -
+ -
..
+ + +
..
@if(file.isDirectory){ } else { } - + @if(file.isDirectory){ @file.name } else { @file.name } - @helpers.datetime(file.time)@helpers.cut(file.message, 60) [@file.committer]
+ +
@helpers.datetime(file.time)@helpers.cut(file.message, 60) [@file.committer]
+ + @readme.map { content => - - - - -
@helpers.markdown(content, repository, false, true, true)
+
+
README.md
+
@helpers.markdown(content, repository, false, true, true)
+
} } \ No newline at end of file diff --git a/src/main/webapp/assets/common/css/gitbucket.css b/src/main/webapp/assets/common/css/gitbucket.css index 982e6f7..045a23d 100644 --- a/src/main/webapp/assets/common/css/gitbucket.css +++ b/src/main/webapp/assets/common/css/gitbucket.css @@ -45,6 +45,15 @@ font-size: small; } +a.commit-message { + color: #333333; +} + +a.commit-message:hover { + color: #333333; +} + + .monospace { font-family: monospace; } @@ -59,6 +68,10 @@ color: gray; } +table.table-file-list { + margin-bottom: 0px; +} + table.table th { background-color: #d9edf7; }