Sha256: 80718b28fa3d14625ba5a7afa34545c2082efe66d5c503f42d531b7742da717b

Contents?: true

Size: 1.82 KB

Versions: 14

Compression:

Stored size: 1.82 KB

Contents

.row
  .span12
    .person-header
      .person-avatar
        = person_avatar_with_fallback(@person, 150)

      .person-values-and-tags
        %ul.person-values
          %li
            %h3= number_as_cents(@person.lifetime_ticket_value)
            %h6= pluralize(@person.tickets.length, 'tickets')
          %li
            %h3= number_as_cents(@person.lifetime_donations)
            %h6= pluralize(@person.orders.collect(&:donations).flatten.length, 'donation')
          %li
            %h3= number_as_cents(@person.lifetime_value)
            %h6 lifetime

        -unless @person.member.nil?
          %ul.detailed-list.tags
            %li.tag.rounder{:style => "background-color: #175c71"}= link_to "Member", person_memberships_path(@person), :style => "color:white"

        .person-tags
          = render :partial=>'shared/tags', :locals => { :tags => @person.tag_list, :subject => @person }


      %h1 #{@person}
      - unless @person.kind_of? Company
        %h6.company-and-title= [@person.title, @person.company_name].select {|s| s.present? }.join(', ')

      %ul.person-links
        -if @person.email.present?
          %li= mail_to @person.email, @person.email, :class => 'email'
        -if @person.twitter_handle.present?
          %li= link_to @person.twitter_handle, full_url(@person.twitter_handle, 'http://twitter.com/'), :class => 'twitter'
        -if @person.facebook_url.present?
          %li= link_to @person.facebook_url, full_url(@person.facebook_url, 'http://facebook.com/'), :class => 'facebook'
        -if @person.linked_in_url.present?
          %li= link_to @person.linked_in_url, full_url(@person.linked_in_url, 'http://linkedin.com/in/'), :class => 'linked-in'
        -unless @person.member.blank?
          %li= link_to @person.member.member_number, person_memberships_path(@person), :class => 'member-number'

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
artfully_ose-1.2.0.pre.15 app/views/people/_header.html.haml
artfully_ose-1.2.0.pre.12 app/views/people/_header.html.haml
artfully_ose-1.2.0.pre.11 app/views/people/_header.html.haml
artfully_ose-1.2.0.pre.10 app/views/people/_header.html.haml
artfully_ose-1.2.0.pre.9 app/views/people/_header.html.haml
artfully_ose-1.2.0.pre.8 app/views/people/_header.html.haml
artfully_ose-1.2.0.pre.7 app/views/people/_header.html.haml
artfully_ose-1.2.0.pre.6 app/views/people/_header.html.haml
artfully_ose-1.2.0.pre.5 app/views/people/_header.html.haml
artfully_ose-1.2.0.pre.4 app/views/people/_header.html.haml
artfully_ose-1.2.0.pre.3 app/views/people/_header.html.haml
artfully_ose-1.2.0.pre.2 app/views/people/_header.html.haml
artfully_ose-1.2.0.pre.1 app/views/people/_header.html.haml
artfully_ose-1.2.0.pre app/views/people/_header.html.haml