Sha256: d95e13f6f9142854941163dc55404780d29a58356b26df97b7e2c66878cab2b5

Contents?: true

Size: 1.57 KB

Versions: 12

Compression:

Stored size: 1.57 KB

Contents

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

.conversations-index
  .header
    %h5.title
      - if @tag
        Tag `#{@tag}`
      - if @tag_not
        Tag-not `#{@tag_not}`
      (#{@conversations.length})
    = render '/wco_email/conversations/search'
  = render '/wco_email/conversations/actions'

  = render '/wco/paginate', resource: @conversations, param_name: :conv_page
  %table.bordered
    %tr
      %th.select-all.nosort
        .a
          = check_box_tag :select_all
          .n-selected -
      %th.leads leads
      %th.subject subject, preview
      %th.tags Tags
      %th.latest-at latest_at
    - @conversations.each_with_index do |conv, idx|
      %tr
        %td.select-all
          .gray= idx+1
          = check_box_tag 'conversation_ids[]', conv.id.to_s, nil, { class: 'i-sel' }
        %td.leads.mini
          -# - conv.from_emails.each do |from|
          -#   = link_to from, wco.lead_path( from )
          -# %hr
          - conv.leads.each do |lead|
            = link_to lead.email, wco.lead_path( lead )
        %td.subject
          - if conv.unread?
            <b>#{link_to conv.subject, conversation_path(conv)}</b>
          - else
            = link_to conv.subject, conversation_path(conv)
          <b>(#{conv.messages.length})</b>
          %span.gray= conv.preview
        %td.tags.mini
          - conv.tags.each do |tag|
            .mb-1
              .Chip= tag.slug
        %td.latest-at
          = pp_date conv.latest_at
          = pp_time conv.latest_at
  = render '/wco/paginate', resource: @conversations, param_name: :conv_page

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
wco_email-0.1.1.53 app/views/wco_email/conversations/index.haml
wco_email-0.1.1.52 app/views/wco_email/conversations/index.haml
wco_email-0.1.1.51 app/views/wco_email/conversations/index.haml
wco_email-0.1.1.50 app/views/wco_email/conversations/index.haml
wco_email-0.1.1.49 app/views/wco_email/conversations/index.haml
wco_email-0.1.1.48 app/views/wco_email/conversations/index.haml
wco_email-0.1.1.47 app/views/wco_email/conversations/index.haml
wco_email-0.1.1.46 app/views/wco_email/conversations/index.haml
wco_email-0.1.1.45 app/views/wco_email/conversations/index.haml
wco_email-0.1.1.44 app/views/wco_email/conversations/index.haml
wco_email-0.1.1.43 app/views/wco_email/conversations/index.haml
wco_email-0.1.1.42 app/views/wco_email/conversations/index.haml