
Untitled
By: a guest on Jan 28th, 2012 | syntax:
None | size: 1.06 KB | hits: 13 | expires: Never
<div class="rates">
<div>
<% for lender in @lenders %>
<%= if_image_tag lender.logo.url(:horizontal_large) %>
<% end %>
</div>
<div>
<% for program in @progs %>
<h3><%= program.name %></h3>
<table border="0">
<tr>
<th class="headtable">Rate</th>
<th class="headtable">Points</th>
<th class="headtable">APR</th>
<th class="assume"><%= link_to "[Assumptions]", :controller => 'rates', :action => 'show', :id => program.id %></th>
</tr>
<% for rate in program.interest_rates %>
<tr class="<%= cycle("even", "odd", :name => "zebra") %>" style="background-color: <%= cycle("white", "none", :name => "zebra-color") %>;">
<td><%= to_dec(rate.rate, 2) -%>% </td>
<td><%= to_dec(rate.points) -%></td>
<td><%= to_dec(rate.apr, 2) -%>% </td>
<td></td>
</tr>
<%# reset_cycle("zebra") -%>
<%# reset_cycle("zebra-color") -%>
<% end %><!-- end program.interest_rates -->
</table>
<% end %>
</div>
</div>