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

Version Path
fat_free_crm-0.14.2 app/views/campaigns/_metrics.html.haml
fat_free_crm-0.15.2 app/views/campaigns/_metrics.html.haml
fat_free_crm-0.16.4 app/views/campaigns/_metrics.html.haml
fat_free_crm-0.14.1 app/views/campaigns/_metrics.html.haml
fat_free_crm-0.15.1 app/views/campaigns/_metrics.html.haml
fat_free_crm-0.16.3 app/views/campaigns/_metrics.html.haml
fat_free_crm-0.16.2 app/views/campaigns/_metrics.html.haml
fat_free_crm-0.16.1 app/views/campaigns/_metrics.html.haml
fat_free_crm-0.16.0 app/views/campaigns/_metrics.html.haml
fat_free_crm-0.15.0 app/views/campaigns/_metrics.html.haml
fat_free_crm-0.15.0.beta.2 app/views/campaigns/_metrics.html.haml
fat_free_crm-0.15.0.beta app/views/campaigns/_metrics.html.haml
fat_free_crm-0.14.0 app/views/campaigns/_metrics.html.haml
reduced_fat_crm-0.15.0.beta app/views/campaigns/_metrics.html.haml
reduced_fat_crm-0.14.0 app/views/campaigns/_metrics.html.haml
fat_free_crm-0.13.6 app/views/campaigns/_metrics.html.haml
fat_free_crm-0.13.5 app/views/campaigns/_metrics.html.haml
fat_free_crm-0.13.4 app/views/campaigns/_metrics.html.haml
fat_free_crm-0.13.3 app/views/campaigns/_metrics.html.haml
fat_free_crm-0.13.2 app/views/campaigns/_metrics.html.haml