aboutsummaryrefslogtreecommitdiff
path: root/pkg/handler
diff options
context:
space:
mode:
authorGabriel A. Giovanini <mail@gabrielgio.me>2025-02-15 23:17:28 +0100
committerGabriel A. Giovanini <mail@gabrielgio.me>2025-02-15 23:17:28 +0100
commit359499b1058a6b8cd4cc99aadd407e0a050ba4d7 (patch)
treea62ddbbf98a8765bf5a77b09161cbe4f994c44b2 /pkg/handler
parentf4ea96c52928eedd11b3f809cd9a481eda214482 (diff)
downloadcerrado-359499b1058a6b8cd4cc99aadd407e0a050ba4d7.tar.gz
cerrado-359499b1058a6b8cd4cc99aadd407e0a050ba4d7.tar.bz2
cerrado-359499b1058a6b8cd4cc99aadd407e0a050ba4d7.zip
ref: Make summary more lean
Now it will only show the first 3 tags to better distribute the page content.
Diffstat (limited to 'pkg/handler')
-rw-r--r--pkg/handler/git/handler.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/handler/git/handler.go b/pkg/handler/git/handler.go
index b825ea4..034d5c2 100644
--- a/pkg/handler/git/handler.go
+++ b/pkg/handler/git/handler.go
@@ -138,6 +138,10 @@ func (g *GitHandler) Summary(w http.ResponseWriter, r *http.Request) error {
return err
}
+ if len(tags) > 3 {
+ tags = tags[:3]
+ }
+
gitList := &templates.GitItemPage{
Name: name,
Ref: ref.Name().Short(),