Sha256: 95cc32c7a5b9425fd26153779b8a8c8cb2d852c66f366880f9116c51daa9fb32

Contents?: true

Size: 1.89 KB

Versions: 1

Compression:

Stored size: 1.89 KB

Contents


<div id="container-main" class="mt-converts">
	<div class="mountain-goat-panel centered">
	
		<h1>Conversion Goals</h1>
		
		<div class="conversions">
			<div class="explanation">
				<span class="inner">
					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>
				</span>
			</div>
			
			<div class="converts">
				<% @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="rate-holder">
											<span class="title"><a href="<%= mountain_goat_metric_variant_url mv %>"><%=h mv.name %></a></span>
											<span class="rates" style="width:<%= number_to_percentage(mv.conversion_rate, :precision => 0) %>"></span>
										</span>
										
										<span class="percent-holder">
											<span class="val"><%= number_to_percentage(mv.conversion_rate, :precision => 0) %></span>
											(<span class="conversions"><%= mv.conversions %></span> /
											<span class="served"><%= mv.served %></span>)
										</span>
									</div>
								<% end %>
							<% end %>
						</div>
					<% end %>
				<% end %>
			</div>
		</div>
	
		<div class="new">
			<a href="<%= new_mountain_goat_convert_url %>">New conversation type</a>
		</div>
	</div>
</div>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mountain-goat-0.0.5 lib/mountain_goat/views/mountain_goat/mountain_goat_converts/index.html.erb