Peer list

<%= for {{:inet, ip, port}, _pid, auth} <- conn_list() do %> <% end %>
Peer ID Address Port
<%= case auth do %> <% nil -> %>(anonymous) <% %SNet.Auth{his_pk: his_pk} -> %> <%= Shard.Keys.pk_display(his_pk) %> <% end %> <%= :inet_parse.ntoa(ip) %> <%= port %>
<%= form_for @conn, page_path(@conn, :add_peer), [class: "form-inline"], fn f -> %> <%= text_input f, :ip, [class: "form-control", placeholder: "Hostname / IP address"] %> <%= text_input f, :port, [class: "form-control", placeholder: "Port", value: "4044"] %> <%= submit "Add peer", [class: "btn btn-default"] %> <% end %>