blob: 1844ce88f7b9cfd8287de41013199f4c5c701810 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
defmodule ShardWeb.IdentityView do
use ShardWeb, :view
def identity_list do
Shard.Keys.list_identities
end
def get_nick(pk) do
SApp.Identity.get_nick pk
end
def people_list do
Shard.Manager.list_shards
|> Enum.filter(fn {_, manifest, _} ->
case manifest do
%SApp.Identity.Manifest{} -> true
_ -> false
end
end)
end
end
|