Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
49 lines (38 sloc) 1.04 KB
<% local.pieces.header(); %>
<h1>10gen grid management</h1>
<div class="container">
<h3>Load Balancers</h3>
<% var lbs = db.lbs.find().toArray(); %>
<% if(lbs && lbs.length) { %>
<ul>
<forarray thing db.lbs.find().toArray() >
<li><%= thing.machine %></li>
</forarray>
</ul>
<% } else { %>
<p>None configured.</p>
<% } %>
<h3>Databases</h3>
<% var dbs = db.dbs.find().toArray(); %>
<% if(dbs && dbs.length) { %>
<ul>
<forarray thing db.dbs.find().toArray() >
<li><%= thing.name %> <%= thing.mode %> <%= thing.machine || "" %> <%= thing.pairs || "" %></li>
</forarray>
</ul>
<% } else { %>
<p>None configured.</p>
<% } %>
<h3>Application Server Pools</h3>
<% var pools = db.pools.find().toArray(); %>
<% if(pools && pools.length) { %>
<ul>
<forarray thing db.pools.find().toArray() >
<li><%= thing.name %> <%= thing.machines %></li>
</forarray>
</ul>
<% } else { %>
<p>None configured.</p>
<% } %>
</div>
<% local.pieces.footer(); %>