Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
53 lines (47 sloc) 1.73 KB
<div class="wrapper clearfix">
<div id="video">
<iframe width='512' height='385' src="<%= video_url %>"></iframe>
</div>
<div id="backing">
<ul>
<li class="stats" id="backers">
<%= number_with_delimiter Order.current, :delimiter => "," %>
<span><%= Settings.primary_stat %></span>
</li>
<li class="stats">
<%= number_to_currency Order.revenue, :precision => 0 %>
<span>of <%= number_to_currency Settings.project_goal.to_f * Settings.price.to_f, :precision => 0 %></span>
</li>
<% if Settings.expiration_date.present? %>
<li class="stats" id="days">
<%= distance_of_time_in_words_to_now(Settings.expiration_date).gsub(/\D/, "") %>
<span><%= distance_of_time_in_words_to_now(Settings.expiration_date).gsub(/\d/, "").gsub("about", "") %> left</span>
</li>
<% else %>
<li class="stats" id="days">
&infin;
<span>days left</span>
</li>
<% end %>
</ul>
<% if Order.current < Order.goal %>
<div id='progress_bg' class='small'>
<div id='progress' class='' style='width: <%= Order.percent %>%;'>
</div>
</div>
<% else %>
<div id="progress_bg">
<div id="progress">
</div>
<div id='progress_text'><%= Order.percent %>% <%= Settings.progress_text %></div>
</div>
<% end %>
<div id="reserve_container">
<p id="ship_date"><%= Settings.ships %></p>
<a href="/preorder/checkout" class="blue_button reserve"><%= Settings.call_to_action %></a>
<p id="price"><%= Settings.price_human %></p>
<p><%= Settings.dont_give_them_a_reason_to_say_no %></p>
<%= like_button %>
</div>
</div>
</div>
Something went wrong with that request. Please try again.