diff options
author | Alex Auvolat <alex@adnab.me> | 2018-10-12 16:38:11 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2018-10-12 16:38:11 +0200 |
commit | f5b4131160520a2540445619188c3c8e0f37da37 (patch) | |
tree | b966fbbe827a004caa65a87dfb8672754ce022ab /shardweb/lib/templates/identity | |
parent | 0d358f6f699a5ce04ffe1bccf4f375b5f321391c (diff) | |
download | shard-f5b4131160520a2540445619188c3c8e0f37da37.tar.gz shard-f5b4131160520a2540445619188c3c8e0f37da37.zip |
Notifications for chat ; useless user info page
Diffstat (limited to 'shardweb/lib/templates/identity')
-rw-r--r-- | shardweb/lib/templates/identity/list.html.eex | 5 | ||||
-rw-r--r-- | shardweb/lib/templates/identity/view.html.eex | 25 |
2 files changed, 29 insertions, 1 deletions
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 %> </td> <td> - <%= if manifest.pk != @pk do %> + <a class="btn btn-xs btn-info" href="<%= identity_path(@conn, :view, manifest.pk |> Base.encode16) %>"><i class="fa fa-info"></i></a> + <%= if manifest.pk == @pk do %> + <a class="btn btn-xs btn-warning" href="<%= identity_path(@conn, :self) %>"><i class="fa fa-edit"></i> Edit</a> + <% else %> <a class="btn btn-xs btn-primary" href="<%= chat_path(@conn, :privchat, manifest.pk |> Base.encode16) %>"><i class="fa fa-comments"></i> PM</a> <% end %> </td> 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 @@ +<!-- Page Heading --> +<div class="row"> + <div class="col-lg-12"> + <h1 class="page-header"> + <%= @view_nick %> <small><%= @view_pk |> Base.encode16 %></small> + </h1> + <ol class="breadcrumb"> + <li> + <i class="fa fa-users"></i> People + </li> + <li class="active"> + <i class="fa fa-user"></i> <%= @view_nick %> + </li> + </ol> + </div> +</div> +<!-- /.row --> + +<%= render ShardWeb.LayoutView, "flashes.html", assigns %> + +<pre> + <%= inspect((GenServer.call(@pid, :get_info)), pretty: true, width: 40) %> +</pre> + + |