From 179617d0587a864d5de8c9cf7bcc972130a6234d Mon Sep 17 00:00:00 2001 From: mappu Date: Sun, 8 Oct 2017 17:08:26 +1300 Subject: [PATCH] contented integration --- ServerOptions.go | 2 ++ rModify.go | 19 +++++++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/ServerOptions.go b/ServerOptions.go index 58fa724..ea5261a 100644 --- a/ServerOptions.go +++ b/ServerOptions.go @@ -21,6 +21,7 @@ type ServerOptions struct { ExternalBaseURL string DeclareRSSLanguage string DeclareRSSEmail string + ContentedServer string } func DefaultOptions() *ServerOptions { @@ -41,5 +42,6 @@ func DefaultOptions() *ServerOptions { ExternalBaseURL: "http://127.0.0.1/", DeclareRSSLanguage: "en-GB", DeclareRSSEmail: `nobody@example.com`, + ContentedServer: "", } } diff --git a/rModify.go b/rModify.go index ba791c1..a8ef506 100644 --- a/rModify.go +++ b/rModify.go @@ -49,6 +49,25 @@ func (this *WikiServer) routeModify(w http.ResponseWriter, r *http.Request, arti | formatting help +` + if len(this.opts.ContentedServer) > 0 { + content += ` + + + | upload... + + ` + } + + content += `