You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
767 B
37 lines
767 B
<h1>Dashboard#index</h1>
|
|
<p>
|
|
<h2>Lex-deeit certificate</h2>
|
|
<h3>Fingerprint</h3>
|
|
<%= Certificate.get.cert_fpr %>
|
|
<h3>Serial</h3>
|
|
<%= Certificate.get.cert.serial %>
|
|
</p>
|
|
<hr/>
|
|
<% @hosts.each do |host| -%>
|
|
<p>
|
|
<h2><%= host.name %></h2>
|
|
<h3>Url:</h3>
|
|
<%= host.uri %>
|
|
<h3>Connection status:</h3>
|
|
<% case -%>
|
|
<% when host.authenticated -%>
|
|
authenticated
|
|
<% when host.connected -%>
|
|
connected
|
|
<% else -%>
|
|
not connected
|
|
<% end -%>
|
|
<% if host.authenticated -%>
|
|
<h3>Config:</h3>
|
|
<%= host.lxd_config.config %>
|
|
<h3>Host known certificates</h3>
|
|
<ul>
|
|
<% host.authenticated and host.lxd_certificates.each do |certificate| -%>
|
|
<li><%= certificate.fingerprint %></li>
|
|
<% end -%>
|
|
</ul>
|
|
<% end -%>
|
|
</p>
|
|
<hr/>
|
|
<% end -%>
|
|
<!-- vim: set ts=2 sw=2: -->
|