display message count

This commit is contained in:
byte[] 2019-12-07 18:29:22 -05:00
parent 3e4cad2c7d
commit 306c954546
2 changed files with 6 additions and 1 deletions

View file

@ -25,7 +25,9 @@ h1 My Conversations
=> link c.title, to: Routes.conversation_path(@conn, :show, c) => link c.title, to: Routes.conversation_path(@conn, :show, c)
.small-text.hide-mobile .small-text.hide-mobile
' Started => count
= pluralize("message", "messages", count)
' ; 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)

View file

@ -12,6 +12,9 @@ h1 = @conversation.title
' Conversation with ' Conversation with
=> render PhilomenaWeb.UserAttributionView, "_user.html", object: %{user: other}, conn: @conn => render PhilomenaWeb.UserAttributionView, "_user.html", object: %{user: other}, conn: @conn
.block__header--sub.block__header--light .block__header--sub.block__header--light
span.block__header__title>
=> @messages.total_entries
= pluralize("message", "messages", @messages.total_entries)
= pagination = pagination
= link "Remove conversation", to: Routes.conversation_hide_path(@conn, :create, @conversation), data: [method: "post", confirm: "Are you really, really sure?"] = link "Remove conversation", to: Routes.conversation_hide_path(@conn, :create, @conversation), data: [method: "post", confirm: "Are you really, really sure?"]
= link "Report conversation", to: Routes.conversation_report_path(@conn, :new, @conversation) = link "Report conversation", to: Routes.conversation_report_path(@conn, :new, @conversation)