diff --git a/master/main.py b/master/main.py index 96575b9..9d60a94 100644 --- a/master/main.py +++ b/master/main.py @@ -537,13 +537,13 @@ def success(): domain = request.args.get('domain') domain = domain.lower() if not site_exists(domain): - return render_template('success.html', message="Error: Domain does not exist\nPlease contact support") + return render_template('success.html', title="Your site is installing.
Please wait...",message="") if 'status' not in request.args: # Get worker worker = site_worker(domain) if worker == None: - return render_template('success.html', message="Error: Domain does not exist\nPlease contact support") + return render_template('success.html', title="Your site is installing.
Please wait...",message="Error: Domain does not exist
Please contact support") # Get worker ip ip = workerIP_PRIV(worker) @@ -554,9 +554,9 @@ def success(): if "tlsa" in json: tlsa = json['tlsa'] - return render_template('success.html', message="Success\nDomain: " + domain + "\nIP: " + publicIP + "\nTLSA: " + tlsa + "\nMake sure to add the TLSA record to `_443._tcp." + domain + "` or `*." + domain + "`") + return render_template('success.html', title="Your site is ready!",message="Success
Domain: " + domain + "
IP: " + publicIP + "
TLSA: " + tlsa + "
Make sure to add the TLSA record to `_443._tcp." + domain + "` or `*." + domain + "`") else: - return render_template('success.html', message="Success\nDomain: " + domain + "\nIP: " + publicIP + "\nTLSA: Pending\nNo TLSA record found") + return render_template('success.html', title="Your site is installing.
Please wait...",message="Domain: " + domain + "
IP: " + publicIP + "
TLSA: Pending
No TLSA record found") elif request.args.get('status') == 'creating': return render_template('success.html') diff --git a/master/templates/success.html b/master/templates/success.html index f2cb7f3..0c1d19d 100644 --- a/master/templates/success.html +++ b/master/templates/success.html @@ -35,9 +35,9 @@

Success

-

Your site is installing.
Please wait...

+

{{title| safe}}

-

{{message}}

+

{{message | safe}}