Link to source

This commit is contained in:
2026-09-13 12:38:22 +02:00
parent 000f9d6984
commit 27be685834
5 changed files with 108 additions and 1 deletions
+4 -1
View File
@@ -241,6 +241,9 @@ type page struct {
// case the markup carries no link rather than one that 404s.
Favicon string
// Source is where the footer links; empty means no footer.
Source string
// Wide widens the page for content that is a table rather than a form.
// The reading measure that suits the upload page is far too narrow for a
// listing, which otherwise ends up behind a horizontal scrollbar.
@@ -250,7 +253,7 @@ type page struct {
// page builds the common fields, resolving the session so the header can show
// who is logged in and offer only the links they can use.
func (s *Server) page(r *http.Request, title string, script bool) page {
p := page{Base: s.cfg.BasePath, Title: title, Script: script}
p := page{Base: s.cfg.BasePath, Title: title, Script: script, Source: s.cfg.SourceURL}
if s.favicon != "" {
p.Favicon = s.cfg.BasePath + "static/" + s.favicon
}