-
My identities
-
<%= @nick %>
<%= render ShardWeb.LayoutView, "flashes.html", assigns %>
<%= form_for @conn, identity_path(@conn, :update), [class: "form-horizontal"], fn f -> %>
<% end %>
Other identities
<%= for pk2 <- identity_list(), pk2 != @pk do %>
-
<%= form_for @conn, identity_path(@conn, :switch), [class: "form-inline"], fn f -> %>
<%= hidden_input f, :pk, value: (pk2 |> Base.encode16) %>
<%= submit "Switch to", [class: "btn btn-xs btn-success"] %>
<%= get_nick pk2 %>
<%= pk2 |> Base.encode16 %>
<% end %>
<% end %>
<%= form_for @conn, identity_path(@conn, :create), [class: "form-inline"], fn _f -> %>
<%= submit "Create new identity", [class: "btn btn-danger"] %>
<% end %>