Sha256: 243083abd0c0f66e246427dc761e94c88e9a6e7d54ff777e13aef177602ca5c0
Contents?: true
Size: 1.88 KB
Versions: 1
Compression:
Stored size: 1.88 KB
Contents
.contact-body = title resource.name .contact-photo %img{:src => resource.avatar_url, :alt => "Avatar for #{resource.name}"} = render 'who', :record => resource, :hide_name => true .contact-links.actions = link_to_edit_resource(resource) = google_search_link(resource.name) = google_news_link(resource.name) - if (tags = resource.tags(:show_all => true)).present? .contact-tags %label #{Tag.model_name.human.pluralize}: = contact_tag_list(tags.sort) .contact-info %label #{Contact.human_attribute_name(:info)}: = resource.info.present? && k(resource.info) || t(:none) - if company = resource.company .contact-company %h2 %span.contact-subheader= company.name %span.contact-actions = google_search_link(company.name) = google_news_link(company.name) - if company.info.present? = k(company.info) .contact-deals %h2 %span.contact-subheader Deals %span.contact-actions = link_to_new_resource(Deal, :deal => { :contact_ids => [resource.id] }) %ul - if (deals = resource.associated_deals.leads(false).limit(5)).blank? %li= resource_humanize(:no_deals) - else - deals.each do |deal| %li .contact-deal-status = deal.status .contact-deal-name = link_to deal.name, edit_deal_path(deal) .contact-deal-value = deal.value .contact.leads %h2 %span.contact-subheader Leads %ul - if (leads = resource.associated_deals.leads.limit(5)).blank? %li= resource_humanize(:no_leads) - else - leads.each do |lead| %li .contact-lead-created-at = l(lead.created_at) .contact-lead-name = link_to lead.offer_name, edit_deal_path(lead) .contact-sidebar = render 'sidebar'
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
e9_crm-0.1.17 | app/views/e9_crm/contacts/show.html.haml |