From 8c49dd71d29359447c24b1cd4f48a8faf0c4fdca Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Mon, 15 Oct 2018 12:18:05 +0200 Subject: Refactor shard starting/stopping --- shardweb/lib/templates/identity/list.html.eex | 4 ++-- shardweb/lib/templates/page/shard_list.html.eex | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'shardweb/lib/templates') 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 @@ Public key - <%= for {_id, manifest, pid} <- people_list() do %> + <%= for {_id, manifest, _} <- people_list() do %> - <%= SApp.Identity.get_info(pid).nick %> + <%= SApp.Identity.get_nick(manifest.pk) %> <%= if manifest.pk == @pk do %> myself <% 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 @@ Shard Id - Pid + State - <%= for {id, manifest, pid} <- shard_list() do %> + <%= for {id, manifest, state} <- shard_list() do %> <%= case manifest do %> <% %SApp.Identity.Manifest{pk: pk} -> %> - <%= SApp.Identity.get_info(pid).nick %> + <%= SApp.Identity.get_nick(pk) %> <%= Shard.Keys.pk_display pk %> @@ -50,7 +50,7 @@ <% end %> <%= id |> Base.encode16 %> - <%= inspect(pid) %> + <%= inspect(state) %> <% end %> -- cgit v1.2.3