mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-10-31 03:09:06 -04:00
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
38 lines
1.3 KiB
Plaintext
38 lines
1.3 KiB
Plaintext
- content_for :breadcrumbs do
|
|
%li.breadcrumb-item= link_to 'Conversations', conversations_path
|
|
%li.breadcrumb-item.active= link_to @conversation.subject, conversation_path(@conversation)
|
|
|
|
.row
|
|
.col-md-2
|
|
.col-md-10
|
|
%h1= @conversation.subject
|
|
.row
|
|
.col-md-2
|
|
.card
|
|
.card-header
|
|
%h6 Participants
|
|
%ul.list-group.list-group-flush
|
|
- @participants.each do |member|
|
|
%li.list-group-item= render 'members/tiny', member: member
|
|
.col-md-10
|
|
.card
|
|
%ul.list-group.list-group-flush
|
|
- @conversation.messages.order(:created_at).each do |message|
|
|
%li.list-group-item
|
|
.col-md-8.text-muted
|
|
= comment_icon
|
|
on #{message.created_at}
|
|
.col-md-4.text-end.float-end
|
|
= render 'members/tiny', member: message.sender
|
|
- if message.notified_object.present?
|
|
.col-12
|
|
About
|
|
= link_to message.notified_object.to_s, polymorphic_path(message.notified_object)
|
|
.col-12
|
|
%p.text-justify
|
|
:markdown
|
|
#{ strip_tags markdownify(message.body) }
|
|
%li.list-group-item
|
|
= icon 'fas', 'reply'
|
|
= render 'messages/form', conversation: @conversation
|