aboutsummaryrefslogtreecommitdiff
path: root/shardweb/lib/templates/identity/list.html.eex
diff options
context:
space:
mode:
Diffstat (limited to 'shardweb/lib/templates/identity/list.html.eex')
-rw-r--r--shardweb/lib/templates/identity/list.html.eex5
1 files changed, 4 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>