Sha256: 9491dc4973bb09471d3daa9a93775e07f3a20b1373bef60825938c8a1852f899

Contents?: true

Size: 1.1 KB

Versions: 13

Compression:

Stored size: 1.1 KB

Contents

%li.highlight[lead]
  - if lead.status
    .strip{class: lead.status}= t lead.status
  - else
    .strip{style: "color: gray;"}= t :other

  %ul.tools
    - if can?(:update, lead)
      %li= link_to_edit(lead)

    - if %w(converted rejected).include?(lead.status)
      %li
        %font{ color: 'silver' }= t :convert
    - elsif can?(:update, lead)
      %li= link_to_convert(lead)

    - if lead.status == "rejected"
      %li
        %font{ color: 'silver' }= t :reject
    - elsif can?(:update, lead)
      %li= link_to_reject(lead)

    - if shown_on_landing_page?
      %li= link_to_discard(lead)

    - if can?(:destroy, lead)
      %li= link_to_delete(lead)

  .indent
    = link_to_if can?(:read, lead), lead.full_name(current_user.preference[:leads_naming]), lead
    %tt
      - if lead.company? && lead.title?
        = t(:works_at, job_title: lead.title, company: lead.company)
      - else
        = lead.company if lead.company?
        = lead.title if lead.title?
      - if lead.referred_by?
        –
        == #{t :referred_by_small} #{lead.referred_by}

    = hook(:lead_bottom, self, lead: lead)

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
fat_free_crm-0.22.1 app/views/leads/_index_brief.html.haml
fat_free_crm-0.22.0 app/views/leads/_index_brief.html.haml
fat_free_crm-0.21.0 app/views/leads/_index_brief.html.haml
fat_free_crm-0.20.1 app/views/leads/_index_brief.html.haml
fat_free_crm-0.20.0 app/views/leads/_index_brief.html.haml
fat_free_crm-0.19.2 app/views/leads/_index_brief.html.haml
fat_free_crm-0.19.0 app/views/leads/_index_brief.html.haml
fat_free_crm-0.18.2 app/views/leads/_index_brief.html.haml
fat_free_crm-0.17.3 app/views/leads/_index_brief.html.haml
fat_free_crm-0.18.1 app/views/leads/_index_brief.html.haml
fat_free_crm-0.18.0 app/views/leads/_index_brief.html.haml
fat_free_crm-0.17.2 app/views/leads/_index_brief.html.haml
fat_free_crm-0.17.1 app/views/leads/_index_brief.html.haml