From 181baf7e0c26c51d7c605bc9797f77ced9188455 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Mon, 15 Oct 2018 16:15:35 +0200 Subject: Basic infrastructure for dependency between shards --- shardweb/lib/templates/page/shard_list.html.eex | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) (limited to 'shardweb/lib/templates') diff --git a/shardweb/lib/templates/page/shard_list.html.eex b/shardweb/lib/templates/page/shard_list.html.eex index 27f70b4..489c1a5 100644 --- a/shardweb/lib/templates/page/shard_list.html.eex +++ b/shardweb/lib/templates/page/shard_list.html.eex @@ -21,12 +21,19 @@ + - - <%= for {id, manifest, state} <- shard_list() do %> + <%= for {id, manifest, why_have_it} <- shard_list() do %> + - <% end %>
Shard IdState
+ <%= case why_have_it do %> + <% {:cached, _} -> %>cache + <% {:pinned, _, _} -> %>pinned + <% {:req, a, _} -> %>req (<%= MapSet.size(a) %>) + <% end %> + <%= case manifest do %> <% %SApp.Identity.Manifest{pk: pk} -> %> @@ -46,11 +53,20 @@ <%= pk_list |> Enum.filter(&(&1!=@pk)) |> Enum.map(&SApp.Identity.get_nick/1) |> Enum.join(", ") %> + <% %SApp.Directory.Manifest{owner: owner, public: public, name: name} -> %> + <%= SApp.Identity.get_nick(owner) %> + + <%= Shard.Keys.pk_display owner %> + + / + <%= name %> + <%= if public do %><% else %><% end %> + + <% x -> %> <%= inspect x %> <% end %> <%= id |> Base.encode16 %><%= inspect(state) %>
-- cgit v1.2.3