Files
bonob/web/views/index.eta
2021-03-02 11:54:27 +11:00

26 lines
790 B
Plaintext

<% layout('./layout') %>
<div id="content">
<h1><%= it.bonobService.name %> (<%= it.bonobService.sid %>)</h1>
<h3>Expected config</h3>
<div><%= JSON.stringify(it.bonobService) %></div>
<% if(it.registeredBonobService) { %>
<h3>Existing service config</h3>
<div><%= JSON.stringify(it.registeredBonobService) %></div>
<% } else { %>
<h3>No existing service registration</h3>
<% } %>
<form action="/register" method="POST"><button>Re-register</button></form>
<h2>Devices</h2>
<ul>
<% it.devices.forEach(function(d){ %>
<li><%= d.name %> (<%= d.ip %>:<%= d.port %>)</li>
<% }) %>
</ul>
<h2>Services <%= it.services.length %></h2>
<ul>
<% it.services.forEach(function(s){ %>
<li><%= s.name %> (<%= s.sid %>)</li>
<% }) %>
</ul>
</div>