1
0
Fork 0
forked from forgejo/forgejo

Display the author and time of git notes

This commit is contained in:
Vladimir Panteleev 2019-05-20 14:31:27 +00:00
parent 89dc23f359
commit 7542929a31
No known key found for this signature in database
GPG key ID: 5004F0FAD051576D
3 changed files with 36 additions and 2 deletions

View file

@ -252,6 +252,8 @@ func Diff(ctx *context.Context) {
err = git.GetNote(ctx.Repo.GitRepo, commitID, &note)
if err == nil {
ctx.Data["Note"] = string(templates.ToUTF8WithFallback(note.Message))
ctx.Data["NoteCommit"] = note.Commit
ctx.Data["NoteAuthor"] = models.ValidateCommitWithEmail(note.Commit)
}
if commit.ParentCount() > 0 {