Sha256: 153b7b53dbc7ffcc5614bbef322d4eb85e8cc7f25c2eaf2e5cf7d1e3fbe81ac5

Contents?: true

Size: 1.07 KB

Versions: 3

Compression:

Stored size: 1.07 KB

Contents

- content_for :sidebar do
  = render 'wco_email/sidebar'

.conversations-show.maxwidth
  %h5
    = @conversation.subject
    <b>(#{@conversation.messages.length})</b>
    = link_to '[~]', edit_conversation_path(@conversation)
    %span.gray.mini= @conversation.id
  .leads
    .d-inline <b>Leads:</b>
    - @conversation.leads.each do |lead|
      .Chip= link_to lead.email, wco.lead_path( lead )


  - if @other_convs.present?
    - @other_convs.each do |conv|
      .d-flex
        = button_to "Merge", merge_conversations_path( @conversation, conv ), data: { confirm: 'Are you sure?' }
        = conv.subject
        (#{conv.messages.length})
        %span.gray.mini= conv.id


  %ul.m-0.p-0
    - @conversation.messages.each do |msg|
      %li
        = render '/wco_email/messages/meta', message: msg
        %iframe.message-iframe{ src: message_iframe_path(msg) }

        = render '/wco_email/contexts/form_reply', lead_id: msg.lead_id, message: msg, ctx: WcoEmail::Context.new({ from_email: msg.to&.downcase, subject: msg.subject, email_template_id: ET.find_by( slug: 'blank').id })

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
wco_email-0.1.1.52 app/views/wco_email/conversations/show.haml
wco_email-0.1.1.51 app/views/wco_email/conversations/show.haml
wco_email-0.1.1.50 app/views/wco_email/conversations/show.haml