diff options
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> + + |