Sha256: f3828c3b59411b5b199ef07a6c4a3ca0bed6cdc3e89884080b8950be90a15c34

Contents?: true

Size: 1.76 KB

Versions: 15

Compression:

Stored size: 1.76 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}

    - unless @current_user.preference[:leads_outline] == "brief"
      %dt
        = stars_for(lead)
        |
        - if can?(:read, lead)
          - if lead.email.present?
            = link_to_email(lead.email)
            |
          - if lead.phone.present?
            == #{t :phone_small}:
            %b= lead.phone
            |
          - if lead.mobile.present?
            == #{t :mobile_small}:
            %b= lead.mobile
            |
          == Score:
          %b= lead.score
          |
        = t(:added_ago, time_ago_in_words(lead.created_at))

      - if lead.tag_list.present?
        %dt
          .tags= tags_for_index(lead)

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

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
ffcrm_cloudfuji-0.4.1 app/views/leads/_lead.html.haml
ffcrm_cloudfuji-0.3.1 app/views/leads/_lead.html.haml
ffcrm_cloudfuji-0.3.0 app/views/leads/_lead.html.haml
ffcrm_cloudfuji-0.2.11 app/views/leads/_lead.html.haml
ffcrm_cloudfuji-0.2.10 app/views/leads/_lead.html.haml
ffcrm_cloudfuji-0.2.9 app/views/leads/_lead.html.haml
ffcrm_cloudfuji-0.2.8 app/views/leads/_lead.html.haml
ffcrm_cloudfuji-0.2.7 app/views/leads/_lead.html.haml
ffcrm_cloudfuji-0.2.6 app/views/leads/_lead.html.haml
ffcrm_cloudfuji-0.2.5 app/views/leads/_lead.html.haml
ffcrm_cloudfuji-0.2.4 app/views/leads/_lead.html.haml
ffcrm_cloudfuji-0.2.3 app/views/leads/_lead.html.haml
ffcrm_cloudfuji-0.2.2 app/views/leads/_lead.html.haml
ffcrm_cloudfuji-0.2.1 app/views/leads/_lead.html.haml
ffcrm_cloudfuji-0.2.0 app/views/leads/_lead.html.haml