Redesign source link
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user