% route = fn p -> ~p"/conversations?#{p}" end pagination = render(PhilomenaWeb.PaginationView, "_pagination.html", page: @conversations, route: route, conn: @conn) %>
Conversation | With | Options |
---|---|---|
<%= link(c.title, to: ~p"/conversations/#{c}") %> | <%= render(PhilomenaWeb.UserAttributionView, "_user.html", object: %{user: other_party(@current_user, c)}, conn: @conn) %> | <%= link("Last message", to: last_message_path(c, count)) %> • <%= link("Hide", to: ~p"/conversations/#{c}/hide", data: [method: "post"], data: [confirm: "Are you really, really sure?"]) %> |