Sha256: 296597515ca2a0070a7dc715e418170cba6e7192d83b864198686bea16f30333

Contents?: true

Size: 1.55 KB

Versions: 12

Compression:

Stored size: 1.55 KB

Contents

- if resource.users.any?
  .contact-emails
    %label= Contact.human_attribute_name(:users)
    - resource.users.each do |user|
      .contact-email
        -#= '* ' if contact_user_subscribed_to_newsletter?(user)
        = link_to(user.email, "mailto:#{user.email}", 'data-contact-id' => resource.id, 'data-user-id' => user.id, :class => 'contact-mailto')
        = "(#{user.options.type})" if user.options.type
        = "(primary)"              if user.primary?

- if resource.phone_number_attributes.any?
  .contact-phone-numbers
    %label= Contact.human_attribute_name(:phone_number_attributes)
    - resource.phone_number_attributes.each do |phone_number_attribute|
      .contact-phone-number= phone_number_attribute

- if resource.instant_messaging_handle_attributes.any?
  .contact-im-handles
    %label= Contact.human_attribute_name(:instant_messaging_handle_attributes)
    - resource.instant_messaging_handle_attributes.each do |instant_messaging_handle_attribute|
      .contact-im-handle= instant_messaging_handle_attribute

- if resource.website_attributes.any?
  .contact-websites
    %label= Contact.human_attribute_name(:website_attributes)
    - resource.website_attributes.each do |website_attribute|
      .contact-website
        = website_attribute.to_s

- if resource.address_attributes.any?
  .contact-addresses
    %label= Contact.human_attribute_name(:address_attributes)
    - resource.address_attributes.each do |address_attribute|
      .contact-address
        .address
          = address_attribute.to_s
        .actions
          = address_attribute.link

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
e9_crm-0.1.28 app/views/e9_crm/contacts/_sidebar.html.haml
e9_crm-0.1.27 app/views/e9_crm/contacts/_sidebar.html.haml
e9_crm-0.1.26 app/views/e9_crm/contacts/_sidebar.html.haml
e9_crm-0.1.25 app/views/e9_crm/contacts/_sidebar.html.haml
e9_crm-0.1.24 app/views/e9_crm/contacts/_sidebar.html.haml
e9_crm-0.1.23 app/views/e9_crm/contacts/_sidebar.html.haml
e9_crm-0.1.22 app/views/e9_crm/contacts/_sidebar.html.haml
e9_crm-0.1.21 app/views/e9_crm/contacts/_sidebar.html.haml
e9_crm-0.1.20 app/views/e9_crm/contacts/_sidebar.html.haml
e9_crm-0.1.19 app/views/e9_crm/contacts/_sidebar.html.haml
e9_crm-0.1.18 app/views/e9_crm/contacts/_sidebar.html.haml
e9_crm-0.1.17 app/views/e9_crm/contacts/_sidebar.html.haml