aboutsummaryrefslogtreecommitdiff
path: root/central/src/main/resources/admin/index.ftlh
diff options
context:
space:
mode:
Diffstat (limited to 'central/src/main/resources/admin/index.ftlh')
-rw-r--r--central/src/main/resources/admin/index.ftlh29
1 files changed, 29 insertions, 0 deletions
diff --git a/central/src/main/resources/admin/index.ftlh b/central/src/main/resources/admin/index.ftlh
index fa6e28f..3316622 100644
--- a/central/src/main/resources/admin/index.ftlh
+++ b/central/src/main/resources/admin/index.ftlh
@@ -12,5 +12,34 @@
<ul>
<li><a href="/admin/sudo">sudo</a></li>
</ul>
+<h2>Registered ASNs and Peering</h2>
+<p>Total ASN: ${asnTotal}</p>
+<p>Total peers: ${peersTotal}</p>
+<h2>Nodes</h2>
+<a href="/admin/nodes/new">New Node</a>
+<table style="width: 100%">
+ <tr>
+ <th>Name</th>
+ <th>Public IP</th>
+ <th>DN42 IP</th>
+ <th>Internal IP</th>
+ <th>Tunnel Methods</th>
+ <th>Actions</th>
+ </tr>
+ <#list nodes as node>
+ <tr>
+ <td>${node.name}</td>
+ <td>${node.publicIp}</td>
+ <td>${node.dn42IP4}<br />${node.dn42IP6}<br />${node.dn42IP6NonLL}</td>
+ <td>${node.internalIP}:${node.internalPort?long?c}</td>
+ <td>
+ <#list node.tunnelingMethods as method>
+ ${method}<br />
+ </#list>
+ </td>
+ <td><a href="/admin/nodes/edit?id=${node.id}">Edit</a></td>
+ </tr>
+ </#list>
+</table>
</body>
</html> \ No newline at end of file