philomena/lib/philomena_web/templates/conversation/show.html.slime
2019-11-15 23:38:42 -05:00

22 lines
865 B
Text

elixir:
route = fn p -> Routes.conversation_path(@conn, :show, @conversation, p) end
pagination = render PhilomenaWeb.PaginationView, "_pagination.html", page: @messages, route: route, conn: @conn
other = other_party(@current_user.id, @conversation)
h1 = @conversation.title
.block
.block__header
=> link "Message Center", to: Routes.conversation_path(@conn, :index)
' »
=> link @conversation.title, to: Routes.conversation_path(@conn, :show, @conversation)
' Conversation with
=> render PhilomenaWeb.UserAttributionView, "_user.html", object: %{user: other}, conn: @conn
.block__header--sub.block__header--light
= pagination
= for {message, body} <- @messages do
= render PhilomenaWeb.MessageView, "_message.html", message: message, body: body, conn: @conn
.block
.block__header.block__header--light
= pagination