From 26629dc30a116204263ac4b515600649ba742ba0 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Wed, 26 Sep 2018 18:14:32 +0200 Subject: Web UI for multiple identities --- shardweb/lib/shard_web/views/identity_view.ex | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 shardweb/lib/shard_web/views/identity_view.ex (limited to 'shardweb/lib/shard_web/views/identity_view.ex') diff --git a/shardweb/lib/shard_web/views/identity_view.ex b/shardweb/lib/shard_web/views/identity_view.ex new file mode 100644 index 0000000..63d5a50 --- /dev/null +++ b/shardweb/lib/shard_web/views/identity_view.ex @@ -0,0 +1,11 @@ +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 +end -- cgit v1.2.3