aboutsummaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorGabriel A. Giovanini <mail@gabrielgio.me>2025-07-02 20:45:16 +0200
committerGabriel A. Giovanini <mail@gabrielgio.me>2025-07-02 20:45:16 +0200
commitd1638198df3a65fe89bfb28f6e1dd285877b55bc (patch)
treed7532d4f346e3ad8cf36ae95e365e79f8aa334e5 /pkg
parentcb6060a60d71ce1be1591bb10f499916155160de (diff)
downloadcerrado-d1638198df3a65fe89bfb28f6e1dd285877b55bc.tar.gz
cerrado-d1638198df3a65fe89bfb28f6e1dd285877b55bc.tar.bz2
cerrado-d1638198df3a65fe89bfb28f6e1dd285877b55bc.zip
feat: Show git clone url on summaryHEADv0.3master
Diffstat (limited to 'pkg')
-rw-r--r--pkg/handler/git/handler.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/handler/git/handler.go b/pkg/handler/git/handler.go
index cb202a2..ffa5dfd 100644
--- a/pkg/handler/git/handler.go
+++ b/pkg/handler/git/handler.go
@@ -38,6 +38,7 @@ type (
GetRootReadme() string
GetSyntaxHighlight() string
GetOrderBy() config.OrderBy
+ GetHostname() string
}
)
@@ -194,6 +195,7 @@ func (g *GitHandler) Summary(w http.ResponseWriter, r *ext.Request) error {
Tags: tags,
Branches: branches,
Commits: commits,
+ Hostname: g.config.GetHostname(),
},
}
templates.WritePageTemplate(w, gitList, r.Context())