index.html.erb 767 Bytes
<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: -->