mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-03-26 10:45:04 -04:00
* HAML * rewrite * Fix specs - but likely still wrong * Return temple * Trailing line * Fix specs * This was rearranged, apparently. * Fix tests * Retain escaping * Fix specs * Rubocop * Attempt to fix rendering * Fix output * Move away from filter * Move away from filter * Fix spec * Fix specs * Fix structure to avoid nested paragraph tags
34 lines
1.1 KiB
Plaintext
34 lines
1.1 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-right.float-right
|
|
= render 'members/tiny', member: message.sender
|
|
.col-12
|
|
%p.text-justify
|
|
:markdown
|
|
#{ strip_tags markdownify(message.body) }
|
|
%li.list-group-item
|
|
= icon 'fas', 'reply'
|
|
= render 'messages/form', conversation: @conversation
|