aboutsummaryrefslogtreecommitdiff
path: root/shardweb/lib/templates
diff options
context:
space:
mode:
Diffstat (limited to 'shardweb/lib/templates')
-rw-r--r--shardweb/lib/templates/identity/list.html.eex4
-rw-r--r--shardweb/lib/templates/page/shard_list.html.eex8
2 files changed, 6 insertions, 6 deletions
diff --git a/shardweb/lib/templates/identity/list.html.eex b/shardweb/lib/templates/identity/list.html.eex
index 19dba2d..629a0db 100644
--- a/shardweb/lib/templates/identity/list.html.eex
+++ b/shardweb/lib/templates/identity/list.html.eex
@@ -23,9 +23,9 @@
<th></th>
<th>Public key</th>
</tr>
- <%= for {_id, manifest, pid} <- people_list() do %>
+ <%= for {_id, manifest, _} <- people_list() do %>
<tr>
- <td><i class="fa fa-user"></i> <%= SApp.Identity.get_info(pid).nick %>
+ <td><i class="fa fa-user"></i> <%= SApp.Identity.get_nick(manifest.pk) %>
<%= if manifest.pk == @pk do %>
<span class="badge badge-success"><i class="fa fa-user"></i> myself</span>
<% end %>
diff --git a/shardweb/lib/templates/page/shard_list.html.eex b/shardweb/lib/templates/page/shard_list.html.eex
index cc23205..27f70b4 100644
--- a/shardweb/lib/templates/page/shard_list.html.eex
+++ b/shardweb/lib/templates/page/shard_list.html.eex
@@ -23,14 +23,14 @@
<tr>
<th>Shard</th>
<th>Id</th>
- <th>Pid</th>
+ <th>State</th>
</tr>
- <%= for {id, manifest, pid} <- shard_list() do %>
+ <%= for {id, manifest, state} <- shard_list() do %>
<tr>
<td>
<%= case manifest do %>
<% %SApp.Identity.Manifest{pk: pk} -> %><i class="fa fa-user"></i>
- <%= SApp.Identity.get_info(pid).nick %>
+ <%= SApp.Identity.get_nick(pk) %>
<a href="<%= identity_path(@conn, :view, pk|>Base.encode16) %>">
<small><%= Shard.Keys.pk_display pk %></small>
</a>
@@ -50,7 +50,7 @@
<% end %>
</td>
<td><small><%= id |> Base.encode16 %></small></td>
- <td><%= inspect(pid) %></td>
+ <td><%= inspect(state) %></td>
</tr>
<% end %>
</table>