blob: 6437f9c9eafbb5f3e01a8d69791d6802b1e9f537 (
plain) (
tree)
|
|
<!-- 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></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 %>
<%= if manifest.pk == @pk do %>
<span class="badge badge-success"><i class="fa fa-user"></i> myself</span>
<% end %>
</td>
<td>
<a class="btn btn-xs btn-info" href="<%= identity_path(@conn, :view, manifest.pk |> Base.encode16) %>"><i class="fa fa-info"></i></a>
<%= if manifest.pk == @pk do %>
<a class="btn btn-xs btn-warning" href="<%= identity_path(@conn, :self) %>"><i class="fa fa-edit"></i> Edit</a>
<% else %>
<a class="btn btn-xs btn-primary" href="<%= chat_path(@conn, :privchat, manifest.pk |> Base.encode16) %>"><i class="fa fa-comments"></i> PM</a>
<% end %>
</td>
<td><small><%= manifest.pk |> Base.encode16 %></small></td>
</tr>
<% end %>
</table>
|