mirror of
https://gitcode.com/gitea/gitea.git
synced 2025-11-14 19:19:03 +08: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