index.html.erb
767 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<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: -->