Sha256: 6c0fbfeb6361d0cc7d2c066ec5d771ef1705bbefded413c3c810d442039ba918

Contents?: true

Size: 1.43 KB

Versions: 5

Compression:

Stored size: 1.43 KB

Contents


<div id="container-main" class="mt-converts">
	<div class="mountain-goat-panel centered">
	
		<h2>Conversion Goals</h2>
		<span class="explanation">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.</span>
		<% @converts.each do |convert| %>
			<h2><a href="<%= mountain_goat_convert_url :id => convert.id %>"><%=h convert.name %></a></h2>
			<% convert.metrics.each do |metric| %>
				<div class="metric-category">
					<span class="metric"><a href="<%= mountain_goat_metric_url :id => metric.id %>"><%= metric.title %></a></span>
					<% if metric.metric_variants.count == 0 %>
						<span class="none">No metric variants [<a href="<%= new_mountain_goat_metric_mountain_goat_metric_variant_url :mountain_goat_metric_id => metric.id %>">Add one</a>]</span>
					<% else %>
						<% metric.metric_variants.each do |mv| %>
							<div class="item rate">
								<span class="rates"><%=h mv.name %></span>:
								<span class="conversions"><%= mv.conversions %></span> /
								<span class="served"><%= mv.served %></span>
								(<span class="val"><%= number_to_percentage(mv.conversion_rate, :precision => 0) %></span>)
							</div>
						<% end %>
					<% end %>
				</div>
			<% end %>
		<% end %>
	
		<div class="new">
			<a href="<%= new_mountain_goat_convert_url %>">New conversation type</a>
		</div>
	</div>
</div>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mountain-goat-0.0.5 lib/mountain_goat/views/mountain_goat/mountain_goat_converts/.tmp_index.html.erb.67861~
mountain-goat-0.0.4 lib/mountain_goat/views/mountain_goat/mountain_goat_converts/index.html.erb
mountain-goat-0.0.3 lib/mountain_goat/views/mountain_goat/mountain_goat_converts/index.html.erb
mountain-goat-0.0.2 lib/mountain_goat/views/mountain_goat/mountain_goat_converts/index.html.erb
mountain-goat-0.0.1 lib/mountain_goat/views/mountain_goat/mountain_goat_converts/index.html.erb