cyberman/views/domains.tt

63 lines
1.2 KiB
Plaintext
Raw Normal View History

2017-07-16 18:13:15 +02:00
<center>
<br />
<h1>Your Domains</h1>
<br />
2017-07-16 19:22:42 +02:00
<% IF params.new %>
<div class="msgBox">
The domain '<% params.new | html_entity %>.cyb' was registered successfully!
</div>
<br /><br />
<% END %>
2017-07-17 01:35:13 +02:00
<% IF params.removed %>
<div class="msgBox">
The domain '<% params.removed | html_entity %>.cyb' was removed successfully.
</div>
<br /><br />
<% END %>
2017-07-16 18:13:15 +02:00
</center>
<div class="body">
<center>
2017-08-11 22:28:32 +02:00
[&nbsp;<a class="bracketButton" href="domains/new">register a domain</a>&nbsp;]
</center>
2017-07-16 18:13:15 +02:00
<% IF domains.size > 0 %>
<em>
<% domains.size %>
<% IF domains.size == 1 %>
domain
<% ELSE %>
domains
<% END %>
</em>
<br />
<table class="domains">
<tr>
<td>
<strong>Domain name</strong>
</td>
<td>
<strong>Actions</strong>
</td>
</tr>
<% FOREACH d IN domains %>
<tr>
<td>
<% d.name | html_entity %>.cyb
</td>
<td>
2017-08-11 22:28:32 +02:00
[&nbsp;<a class="bracketButton" href="domains/<% d.name %>/records">edit</a>&nbsp;]
[&nbsp;<a class="bracketButton" href="domains/<% d.name %>/remove">remove</a>&nbsp;]
2017-07-16 18:13:15 +02:00
</td>
</tr>
<% END %>
</table>
<% ELSE %>
You don't have any domains registered.
<% END %>
</div>