diff --git a/appview/pages/pages.go b/appview/pages/pages.go index 12f3daa8..198d6ddf 100644 --- a/appview/pages/pages.go +++ b/appview/pages/pages.go @@ -30,6 +30,7 @@ import ( "github.com/alecthomas/chroma/v2/lexers" "github.com/alecthomas/chroma/v2/styles" "github.com/bluesky-social/indigo/atproto/syntax" + "github.com/go-git/go-git/v5/plumbing/object" "github.com/microcosm-cc/bluemonday" ) @@ -462,6 +463,8 @@ type RepoIndexParams struct { RepoInfo RepoInfo Active string TagMap map[string][]string + Tags []*types.TagReference + CommitsTrunc []*object.Commit types.RepoIndexResponse HTMLReadme template.HTML Raw bool diff --git a/appview/pages/templates/repo/index.html b/appview/pages/templates/repo/index.html index c6705b9b..87982646 100644 --- a/appview/pages/templates/repo/index.html +++ b/appview/pages/templates/repo/index.html @@ -32,7 +32,7 @@ {{ block "branchSelector" . }}{{ end }}
{{ block "fileTree" . }}{{ end }} - {{ block "commitLog" . }}{{ end }} + {{ block "rightInfo" . }}{{ end }}
{{ end }} @@ -72,14 +72,6 @@ {{ end }} - - {{ i "logs" "w-4 h-4" }} - {{ .TotalCommits }} - {{ if eq .TotalCommits 1 }}commit{{ else }}commits{{ end }} - {{ end }} @@ -136,84 +128,179 @@ {{ end }} -{{ define "commitLog" }} -