Sha256: 32be70f118997723dad3b404a7fd0d46f11c538e72e62873b886422e0b5a0e56

Contents?: true

Size: 1.12 KB

Versions: 26

Compression:

Stored size: 1.12 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

26 entries across 26 versions & 2 rubygems

Version Path
fat_free_crm-0.14.2 app/views/leads/_index_brief.html.haml
fat_free_crm-0.15.2 app/views/leads/_index_brief.html.haml
fat_free_crm-0.16.4 app/views/leads/_index_brief.html.haml
fat_free_crm-0.14.1 app/views/leads/_index_brief.html.haml
fat_free_crm-0.15.1 app/views/leads/_index_brief.html.haml
fat_free_crm-0.16.3 app/views/leads/_index_brief.html.haml
fat_free_crm-0.16.2 app/views/leads/_index_brief.html.haml
fat_free_crm-0.16.1 app/views/leads/_index_brief.html.haml
fat_free_crm-0.16.0 app/views/leads/_index_brief.html.haml
fat_free_crm-0.15.0 app/views/leads/_index_brief.html.haml
fat_free_crm-0.15.0.beta.2 app/views/leads/_index_brief.html.haml
fat_free_crm-0.15.0.beta app/views/leads/_index_brief.html.haml
fat_free_crm-0.14.0 app/views/leads/_index_brief.html.haml
reduced_fat_crm-0.15.0.beta app/views/leads/_index_brief.html.haml
reduced_fat_crm-0.14.0 app/views/leads/_index_brief.html.haml
fat_free_crm-0.13.6 app/views/leads/_index_brief.html.haml
fat_free_crm-0.13.5 app/views/leads/_index_brief.html.haml
fat_free_crm-0.13.4 app/views/leads/_index_brief.html.haml
fat_free_crm-0.13.2 app/views/leads/_index_brief.html.haml
fat_free_crm-0.12.3 app/views/leads/_index_brief.html.haml