diff options
author | Alex Auvolat <alex@adnab.me> | 2018-11-02 11:22:28 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2018-11-02 11:22:28 +0100 |
commit | 3baa53f1da7f581619b066832b8303efbe9a46ba (patch) | |
tree | d6b49bd09fa915b93e13f3a03febc7fb1b38e9a4 /shardweb/lib/templates/identity | |
parent | 80200dc43f271938fb14ec4eb4712e8dd7375aeb (diff) | |
download | shard-3baa53f1da7f581619b066832b8303efbe9a46ba.tar.gz shard-3baa53f1da7f581619b066832b8303efbe9a46ba.zip |
Remove friends list ; add some links
Diffstat (limited to 'shardweb/lib/templates/identity')
-rw-r--r-- | shardweb/lib/templates/identity/view.html.eex | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/shardweb/lib/templates/identity/view.html.eex b/shardweb/lib/templates/identity/view.html.eex index 6cb1bde..3fb5a3f 100644 --- a/shardweb/lib/templates/identity/view.html.eex +++ b/shardweb/lib/templates/identity/view.html.eex @@ -18,16 +18,8 @@ <%= render ShardWeb.LayoutView, "flashes.html", assigns %> -<%= if is_friend(@conn, @view_pk) do %> - <%= form_for @conn, identity_path(@conn, :view_post, @view_pk|>Base.encode16()), [class: "form-inline"], fn f -> %> - <%= hidden_input f, :rm_friend, value: "true" %> - <%= submit "Remove from friends", [class: "btn btn-sm btn-danger"] %> - <% end %> -<% else %> - <%= form_for @conn, identity_path(@conn, :view_post, @view_pk|>Base.encode16()), [class: "form-inline"], fn f -> %> - <%= hidden_input f, :add_friend, value: "true" %> - <%= submit "Add to friends", [class: "btn btn-sm btn-success"] %> - <% end %> +<%= if @view_pk != @pk do %> + <a class="btn btn-s btn-primary" href="<%= chat_path(@conn, :privchat, @pk |> Base.encode16) %>"><i class="fa fa-comments"></i> PM</a> <% end %> <pre> |