Sha256: ce5c74577c8b9532f568a6d5de051ae9a35f1a0ea3b449c0b12ea15f024bb2e2

Contents?: true

Size: 965 Bytes

Versions: 8

Compression:

Stored size: 965 Bytes

Contents

%table.records
  %thead
    %tr
      %th= orderable_column_link(:contact_name, :contact)
      %th= orderable_column_link(:new_visits)
      %th= orderable_column_link(:repeat_visits)
      %th= t(:actions)
  %tbody
    - if collection.empty?
      %tr
        %td{:colspan => 5}= e9_t(:no_records_text)
    - else
      - collection.each do |record|
        %tr{:id => "ids_#{record.id}", :class => cycle('odd', 'even')}
          %td.record-contact-name
            = record.contact_name
          %td.record-new-visits.num
            = record.new_visits.to_i
          %td.record-repeat-visits.num
            = record.repeat_visits.to_i
          %td.links
            - if record.contact_id
              = link_to "View Contact", contact_url(record.contact_id)
              = link_to "View Contact's Activity", page_views_url(:contact => record.contact_id, :campaign => parent.id)

- if controller.send(:should_paginate_index)
  = will_paginate collection

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
e9_crm-0.1.34 app/views/e9_crm/visits/_table.html.haml
e9_crm-0.1.33 app/views/e9_crm/visits/_table.html.haml
e9_crm-0.1.32 app/views/e9_crm/visits/_table.html.haml
e9_crm-0.1.31 app/views/e9_crm/visits/_table.html.haml
e9_crm-0.1.30 app/views/e9_crm/visits/_table.html.haml
e9_crm-0.1.29 app/views/e9_crm/visits/_table.html.haml
e9_crm-0.1.28 app/views/e9_crm/visits/_table.html.haml
e9_crm-0.1.27 app/views/e9_crm/visits/_table.html.haml