aboutsummaryrefslogtreecommitdiff
path: root/shardweb/lib/templates
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2018-10-15 12:18:05 +0200
committerAlex Auvolat <alex@adnab.me>2018-10-15 12:18:05 +0200
commit8c49dd71d29359447c24b1cd4f48a8faf0c4fdca (patch)
treee2d8b61139d6b72e6abfda6277918f54fdae36ef /shardweb/lib/templates
parent7a9678843647de930885792149b279ef105f67b6 (diff)
downloadshard-8c49dd71d29359447c24b1cd4f48a8faf0c4fdca.tar.gz
shard-8c49dd71d29359447c24b1cd4f48a8faf0c4fdca.zip
Refactor shard starting/stopping
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>