Remove hard-coded '.cyb' assumptions

This commit is contained in:
Al Beano 2017-08-12 09:56:05 +01:00
parent d87964893f
commit e91816381d
3 changed files with 9 additions and 9 deletions

View File

@ -5,13 +5,13 @@
<% IF params.new %>
<div class="msgBox">
The domain '<% params.new | html_entity %>.cyb' was registered successfully!
The domain '<% params.new | html_entity %>.<% vars.config.tld %>' was registered successfully!
</div>
<br /><br />
<% END %>
<% IF params.removed %>
<div class="msgBox">
The domain '<% params.removed | html_entity %>.cyb' was removed successfully.
The domain '<% params.removed | html_entity %>.<% vars.config.tld %>' was removed successfully.
</div>
<br /><br />
<% END %>
@ -46,7 +46,7 @@
<% FOREACH d IN domains %>
<tr>
<td>
<% d.name | html_entity %>.cyb
<% d.name | html_entity %>.<% vars.config.tld %>
</td>
<td>
[&nbsp;<a class="bracketButton" href="domains/<% d.name %>/records">edit</a>&nbsp;]

View File

@ -11,10 +11,10 @@
You did not specify a domain to register.
<% END %>
<% IF e_exists %>
The domain '<% params.name | html_entity %>.cyb' has already been registered. Please choose a different domain name.
The domain '<% params.name | html_entity %>.<% vars.config.tld %>' has already been registered. Please choose a different domain name.
<% END %>
<% IF e_chars %>
The domain '<% params.name | html_entity %>.cyb' contains invalid characters. Domains must match the regular expression `^[a-z0-9]([a-z0-9\-_]*[a-z0-9])?$`.
The domain '<% params.name | html_entity %>.<% vars.config.tld %>' contains invalid characters.
<% END %>
</div>
<br /><br />
@ -26,7 +26,7 @@
<br /><br />
<form method="POST" class="login">
<input type="text" name="name" id="name" onkeyup="checkAvailability()">.cyb
<input type="text" name="name" id="name" onkeyup="checkAvailability()">.<% vars.config.tld %>
<br /><br />
[&nbsp;<button action="submit" class="textButton">register&nbsp;domain</button>&nbsp;]
[&nbsp;<a href="../domains" class="bracketButton">go&nbsp;back</a>&nbsp;]

View File

@ -1,16 +1,16 @@
<% IF domain %>
<center>
<br />
<h1>Removal of <% domain.name %>.cyb</h1>
<h1>Removal of <% domain.name %>.<% vars.config.tld %></h1>
<br />
</center>
<div class="body">
<p>
You are about to permanently remove <% domain.name %>.cyb and all its records.
You are about to permanently remove <% domain.name %>.<% vars.config.tld %> and all its records.
</p>
<p style="font-size:1.6em">
YOU ARE ABOUT TO PERMANENTLY REMOVE <% domain.name %>.cyb AND ALL ITS RECORDS!
YOU ARE ABOUT TO PERMANENTLY REMOVE <% domain.name %>.<% vars.config.tld %> AND ALL ITS RECORDS!
</p>
<p>
There is <strong>no</strong> guarantee that you will be able to re-register this domain at a later date.