forked from forgejo/forgejo
Display the author and time of git notes
This commit is contained in:
parent
89dc23f359
commit
7542929a31
3 changed files with 36 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue