Sha256: 55a5f0eb3e715c9a55a7387d1731d06f83fd7e07db68390917cea2861ebf2111
Contents?: true
Size: 950 Bytes
Versions: 31
Compression:
Stored size: 950 Bytes
Contents
- objectives = [] - objectives << t(:revenue_number, number_to_currency(campaign.target_revenue, :precision => 0)) if campaign.target_revenue - objectives << t('pluralize.lead', :count => campaign.target_leads) if campaign.target_leads - objectives << t(:conversion_number, number_to_percentage(campaign.target_conversion, :precision => 1)) if campaign.target_conversion - unless objectives.empty? %dt %b #{t :target}: = objectives.join(" | ") %dt - unless objectives.empty? %b #{t :actual}: = t(:revenue_number, number_to_currency(campaign.revenue || 0, :precision => 0)) + " | " = t('pluralize.lead', campaign.leads_count || 0) + " | " = t('pluralize.opportunity', campaign.opportunities_count || 0) - if campaign.opportunities_count? && campaign.leads_count? && campaign.leads_count != 0 = " | " << t(:conversion_number, number_to_percentage(campaign.opportunities_count * 100 / campaign.leads_count, :precision => 1))
Version data entries
31 entries across 31 versions & 2 rubygems