|
|
@ -33,10 +33,12 @@ const ( |
|
|
|
|
|
|
|
|
|
|
|
serverSoftware = "WriteFreely" |
|
|
|
serverSoftware = "WriteFreely" |
|
|
|
softwareURL = "https://writefreely.org" |
|
|
|
softwareURL = "https://writefreely.org" |
|
|
|
|
|
|
|
|
|
|
|
softwareVer = "0.3" |
|
|
|
|
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Software version can be set from git env using -ldflags
|
|
|
|
|
|
|
|
var softwareVer = "v0.3" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var ( |
|
|
|
var ( |
|
|
|
debugging bool |
|
|
|
debugging bool |
|
|
|
|
|
|
|
|
|
|
@ -133,7 +135,7 @@ func pageForReq(app *app, r *http.Request) page.StaticPage { |
|
|
|
p := page.StaticPage{ |
|
|
|
p := page.StaticPage{ |
|
|
|
AppCfg: app.cfg.App, |
|
|
|
AppCfg: app.cfg.App, |
|
|
|
Path: r.URL.Path, |
|
|
|
Path: r.URL.Path, |
|
|
|
Version: "v" + softwareVer, |
|
|
|
Version: softwareVer, |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Add user information, if given
|
|
|
|
// Add user information, if given
|
|
|
|