mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-28 05:57:58 +01:00
39 lines
No EOL
1.3 KiB
Text
39 lines
No EOL
1.3 KiB
Text
elixir:
|
|
route = fn p -> Routes.conversation_path(@conn, :index, p) end
|
|
pagination = render PhilomenaWeb.PaginationView, "_pagination.html", page: @conversations, route: route, conn: @conn
|
|
|
|
h1 My Conversations
|
|
.block
|
|
.block__header
|
|
a href=Routes.conversation_path(@conn, :new)
|
|
i.fa.fa-paper-plane>
|
|
' Create New Conversation
|
|
|
|
= pagination
|
|
|
|
.block__content
|
|
table.table.table--communication-list
|
|
thead
|
|
tr
|
|
th.table--communication-list__name Conversation
|
|
th.table--communication-list__stats With
|
|
th.table--communication-list__options Options
|
|
tbody
|
|
= for c <- @conversations do
|
|
tr class=conversation_class(@conn.assigns.current_user, c)
|
|
td.table--communication-list__name
|
|
=> link c.title, to: Routes.conversation_path(@conn, :show, c)
|
|
|
|
.small-text.hide-mobile
|
|
' Started
|
|
= pretty_time(c.created_at)
|
|
' , last message
|
|
= pretty_time(c.last_message_at)
|
|
|
|
td.table--communication-list__stats
|
|
= render PhilomenaWeb.UserAttributionView, "_user.html", object: %{user: other_party(@current_user.id, c)}, conn: @conn
|
|
td.table--communication-list__options
|
|
| Last message
|
|
|
|
.block__header.block__header--light
|
|
= pagination |