From f5b4131160520a2540445619188c3c8e0f37da37 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Fri, 12 Oct 2018 16:38:11 +0200 Subject: Notifications for chat ; useless user info page --- shardweb/lib/templates/chat/chat.html.eex | 6 +- shardweb/lib/templates/identity/list.html.eex | 5 +- shardweb/lib/templates/identity/view.html.eex | 25 ++++++ shardweb/lib/templates/layout/app.html.eex | 101 +++++++++++-------------- shardweb/lib/templates/page/peer_list.html.eex | 7 +- 5 files changed, 81 insertions(+), 63 deletions(-) create mode 100644 shardweb/lib/templates/identity/view.html.eex (limited to 'shardweb/lib/templates') diff --git a/shardweb/lib/templates/chat/chat.html.eex b/shardweb/lib/templates/chat/chat.html.eex index 8a43acf..45609d8 100644 --- a/shardweb/lib/templates/chat/chat.html.eex +++ b/shardweb/lib/templates/chat/chat.html.eex @@ -18,14 +18,14 @@ Chat rooms
  • - #<%= @chan %> + #<%= @chan %>
  • <% else %>
  • - Private chat + Private chat
  • - <%= @nicks %> + <%= @nicks %>
  • <% end %> diff --git a/shardweb/lib/templates/identity/list.html.eex b/shardweb/lib/templates/identity/list.html.eex index 007af3d..6437f9c 100644 --- a/shardweb/lib/templates/identity/list.html.eex +++ b/shardweb/lib/templates/identity/list.html.eex @@ -31,7 +31,10 @@ <% end %> - <%= if manifest.pk != @pk do %> + + <%= if manifest.pk == @pk do %> + Edit + <% else %> PM <% end %> diff --git a/shardweb/lib/templates/identity/view.html.eex b/shardweb/lib/templates/identity/view.html.eex new file mode 100644 index 0000000..8bb8ca2 --- /dev/null +++ b/shardweb/lib/templates/identity/view.html.eex @@ -0,0 +1,25 @@ + +
    +
    +

    + <%= @view_nick %> <%= @view_pk |> Base.encode16 %> +

    + +
    +
    + + +<%= render ShardWeb.LayoutView, "flashes.html", assigns %> + +
    +  <%= inspect((GenServer.call(@pid, :get_info)), pretty: true, width: 40) %>
    +
    + + diff --git a/shardweb/lib/templates/layout/app.html.eex b/shardweb/lib/templates/layout/app.html.eex index f49c8e6..067ad57 100644 --- a/shardweb/lib/templates/layout/app.html.eex +++ b/shardweb/lib/templates/layout/app.html.eex @@ -52,79 +52,52 @@