main: Updated status page style
This commit is contained in:
parent
08f36a7a50
commit
bda99dbf5f
@ -537,13 +537,13 @@ def success():
|
|||||||
domain = request.args.get('domain')
|
domain = request.args.get('domain')
|
||||||
domain = domain.lower()
|
domain = domain.lower()
|
||||||
if not site_exists(domain):
|
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.<br>Please wait...",message="")
|
||||||
|
|
||||||
if 'status' not in request.args:
|
if 'status' not in request.args:
|
||||||
# Get worker
|
# Get worker
|
||||||
worker = site_worker(domain)
|
worker = site_worker(domain)
|
||||||
if worker == None:
|
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.<br>Please wait...",message="Error: Domain does not exist<br>Please contact support")
|
||||||
# Get worker ip
|
# Get worker ip
|
||||||
ip = workerIP_PRIV(worker)
|
ip = workerIP_PRIV(worker)
|
||||||
|
|
||||||
@ -554,9 +554,9 @@ def success():
|
|||||||
|
|
||||||
if "tlsa" in json:
|
if "tlsa" in json:
|
||||||
tlsa = json['tlsa']
|
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<br>Domain: " + domain + "<br>IP: " + publicIP + "<br>TLSA: " + tlsa + "<br>Make sure to add the TLSA record to `_443._tcp." + domain + "` or `*." + domain + "`")
|
||||||
else:
|
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.<br>Please wait...",message="Domain: " + domain + "<br>IP: " + publicIP + "<br>TLSA: Pending<br>No TLSA record found")
|
||||||
|
|
||||||
elif request.args.get('status') == 'creating':
|
elif request.args.get('status') == 'creating':
|
||||||
return render_template('success.html')
|
return render_template('success.html')
|
||||||
|
@ -35,9 +35,9 @@
|
|||||||
<div class="col-md-8 col-xl-6 text-center text-md-start mx-auto">
|
<div class="col-md-8 col-xl-6 text-center text-md-start mx-auto">
|
||||||
<div class="text-center">
|
<div class="text-center">
|
||||||
<p class="fw-bold text-success mb-2">Success</p>
|
<p class="fw-bold text-success mb-2">Success</p>
|
||||||
<h1 class="fw-bold">Your site is installing.<br>Please wait...</h1>
|
<h1 class="fw-bold">{{title| safe}}</h1>
|
||||||
</div>
|
</div>
|
||||||
<p class="text-center">{{message}}</p>
|
<p class="text-center">{{message | safe}}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user