Sha256: c9130a2018b8d00583def53d98b12b65d9dda8d1dfa3f6ce810959e84b224c73
Contents?: true
Size: 1.28 KB
Versions: 5
Compression:
Stored size: 1.28 KB
Contents
<h3>Products in cart</h3> <% if @order!=nil && @order.orderdetails.length>0 %> <table class="table"> <% @order.orderdetails.each do |orderdetail| %> <tr class="<%=cycle('odd','even')%>"> <td><%=orderdetail.product.product_name%></td><td class="last"><%=to_curr(orderdetail.product.product_price)%></td> </tr> <% if orderdetail.billingcycle!=nil %> <tr class="<%=cycle('odd','even')%>"> <td class="last" colspan='2'>Per <%=orderdetail.billingcycle.billingcycle_days%> days @ <%=to_curr(orderdetail.billingcycle.billingcycle_price)%></td> </tr> <% end %> <% if orderdetail.tld!=nil %> <tr class="<%=cycle('odd','even')%>"> <td><%=orderdetail.domain_name%></td><td class="last">Per 360 days @ <%=to_curr(orderdetail.tld.tld_price)%></td> </tr> <% end %> <% end %> </table> <% else %> <div class="content"><p>Cart is empty</p></div> <% end %> <div class="actions-bar"> <div class="pagination"> <% if @order!=nil && @order.orderdetails.length>0 %> <%=link_to "Empty cart", "/empty_cart" %> <% if logged_in? && @order.user.active? %> <%=link_to "Checkout", "/checkout" %> <% else %> <%=link_to "Continue", "/customer" %> <% end %> <% end %> </div> <div class="clear"></div> </div>
Version data entries
5 entries across 5 versions & 2 rubygems