table row

This commit is contained in:
byte[] 2019-11-15 23:41:10 -05:00
parent f28fcc59d0
commit 4b37a568c4
2 changed files with 13 additions and 12 deletions

View file

@ -39,6 +39,6 @@ defmodule PhilomenaWeb.ConversationController do
messages = messages =
%{messages | entries: Enum.zip(messages.entries, rendered)} %{messages | entries: Enum.zip(messages.entries, rendered)}
render(conn, "index.html", conversation: conversation, messages: messages) render(conn, "show.html", conversation: conversation, messages: messages)
end end
end end

View file

@ -16,19 +16,20 @@ h1 My Conversations
th.table--communication-list__options Options th.table--communication-list__options Options
tbody tbody
= for c <- @conversations do = for c <- @conversations do
td.table--communication-list__name tr
=> link c.title, to: Routes.conversation_path(@conn, :show, c) td.table--communication-list__name
=> link c.title, to: Routes.conversation_path(@conn, :show, c)
.small-text.hide-mobile .small-text.hide-mobile
' Started ' Started
= pretty_time(c.created_at) = pretty_time(c.created_at)
' , last message ' , last message
= pretty_time(c.last_message_at) = pretty_time(c.last_message_at)
td.table--communication-list__stats td.table--communication-list__stats
= render PhilomenaWeb.UserAttributionView, "_user.html", object: %{user: other_party(@current_user.id, c)}, conn: @conn = render PhilomenaWeb.UserAttributionView, "_user.html", object: %{user: other_party(@current_user.id, c)}, conn: @conn
td.table--communication-list__options td.table--communication-list__options
| Last message | Last message
.block__header.block__header--light .block__header.block__header--light
= pagination = pagination