all repos — elgit @ 4e3516e3e47f795d1868c31fc5c2710157ee396d

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

fix links to named references in log

Alan Pearce
commit

4e3516e3e47f795d1868c31fc5c2710157ee396d

parent

d11c34e5b61195bd7279d1015b302bac418d455a

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

changed files
M templates/log.gotemplates/log.go
@@ -4,10 +4,10 @@ import (
"fmt" "strings" - "github.com/go-git/go-git/v5/plumbing" "alin.ovh/elgit/git" g "alin.ovh/gomponents" . "alin.ovh/gomponents/html" + "github.com/go-git/go-git/v5/plumbing" ) // LogPage renders the commit log page
@@ -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.Name, ref.Name().Short())), Class("commit-reference"), g.Text(ref.Name().Short()), )