mirror of
https://github.com/go-gitea/gitea
synced 2025-12-07 13:28:25 +00:00
Display the author and time of git notes
This commit is contained in:
@@ -252,6 +252,8 @@ func Diff(ctx *context.Context) {
|
||||
err = git.GetNote(ctx.Repo.GitRepo, commitID, ¬e)
|
||||
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 {
|
||||
|
||||
Reference in New Issue
Block a user