Conversion Goals

Below are a list of conversion goals. Each goal has a set of metrics designed to achieve that goal. For each metric, there is a list of variants, each coupled with its conversation rate.
<% @converts.each do |convert| %>

<%=h convert.name %>

<% convert.metrics.each do |metric| %>
<%= metric.title %> <% if metric.metric_variants.count == 0 %> No metric variants [Add one] <% else %> <% metric.metric_variants.each do |mv| %>
<%=h mv.name %> <%= number_to_percentage(mv.conversion_rate, :precision => 0) %> (<%= mv.conversions %> / <%= mv.served %>)
<% end %> <% end %>
<% end %> <% end %>