<% route = fn p -> ~p"/conversations?#{p}" end pagination = render(PhilomenaWeb.PaginationView, "_pagination.html", page: @conversations, route: route, conn: @conn) %>

My Conversations

<%= for {c, count} <- @conversations do %> <% end %>
Conversation With Options
<%= link(c.title, to: ~p"/conversations/#{c}") %>
<%= count %> <%= pluralize("message", "messages", count) %> ; started <%= pretty_time(c.created_at) %> , last message <%= pretty_time(c.last_message_at) %>
<%= 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?"]) %>