all repos — elgit @ 9325686a47c6569985ec4691d88a1355585c6de9

fork of legit: web frontend for git, written in go

unify repository metadata access

Alan Pearce
commit

9325686a47c6569985ec4691d88a1355585c6de9

parent

4824077ca3d2cd326880229ba3985bcf70a1fafa

1 file changed, 2 insertions(+), 2 deletions(-)

changed files
M templates/log.gotemplates/log.go
@@ -27,7 +27,7 @@ g.Map(commits, func(commit *git.CommitReference) g.Node {
return g.Group{ Div(Class("commit-header"), A( - Href(fmt.Sprintf("/%s/commit/%s", data.Name, commit.Hash.String())), + Href(fmt.Sprintf("/%s/commit/%s", data.Repo.Name, commit.Hash.String())), Class("commit-message"), g.Text(firstLine(commit.Message)), ),
@@ -36,7 +36,7 @@ g.If(
commit.HasReference(), g.Map(commit.References(), func(ref *plumbing.Reference) g.Node { return A( - Href(fmt.Sprintf("/%s/tree/%s/", data.Name, ref.Name().Short())), + Href(fmt.Sprintf("/%s/tree/%s/", data.Repo.Name, ref.Name().Short())), Class("commit-reference"), g.Text(ref.Name().Short()), )