aboutsummaryrefslogtreecommitdiff
path: root/shardweb/lib/templates/identity/list.html.eex
diff options
context:
space:
mode:
Diffstat (limited to 'shardweb/lib/templates/identity/list.html.eex')
-rw-r--r--shardweb/lib/templates/identity/list.html.eex32
1 files changed, 32 insertions, 0 deletions
diff --git a/shardweb/lib/templates/identity/list.html.eex b/shardweb/lib/templates/identity/list.html.eex
new file mode 100644
index 0000000..1354264
--- /dev/null
+++ b/shardweb/lib/templates/identity/list.html.eex
@@ -0,0 +1,32 @@
+<!-- Page Heading -->
+<div class="row">
+ <div class="col-lg-12">
+ <h1 class="page-header">
+ People on the network
+
+ </h1>
+ <ol class="breadcrumb">
+ <li class="active">
+ <i class="fa fa-users"></i> People
+ </li>
+ </ol>
+ </div>
+</div>
+<!-- /.row -->
+
+<%= render ShardWeb.LayoutView, "flashes.html", assigns %>
+
+
+<table class="table table-striped">
+ <tr>
+ <th>User name</th>
+ <th>Public key</th>
+ </tr>
+ <%= for {_id, manifest, pid} <- people_list() do %>
+ <tr>
+ <td><i class="fa fa-user"></i> <%= GenServer.call(pid, :get_info).nick %> </td>
+ <td><small><%= manifest.pk |> Base.encode16 %></small></td>
+ </tr>
+ <% end %>
+</table>
+