Link to source
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user