Redesign source link

This commit is contained in:
2026-09-13 12:45:44 +02:00
parent 27be685834
commit 132e7c41d2
5 changed files with 32 additions and 23 deletions
+2
View File
@@ -53,6 +53,7 @@ type indexPage struct {
// field wants is "never", what the list wants is "unlimited".
ExpiryHint string
AbsBase string
Source string // the repository this build came from, "" to say nothing
AllowVanity bool
MaxSizeBytes int64 // 0 when unlimited; the script checks against it
Stale bool // a login whose token no longer exists
@@ -83,6 +84,7 @@ func (s *Server) handleIndex(w http.ResponseWriter, r *http.Request) {
DefaultExpiry: config.FormatLifetime(lim.DefaultExpiry),
ExpiryHint: config.FormatDuration(lim.DefaultExpiry),
AbsBase: s.absBase(r),
Source: s.cfg.SourceURL,
AllowVanity: lim.AllowVanity,
MaxSizeBytes: lim.MaxSize,
Stale: stale,