Updating payment and front page status alerts to work properly

This commit is contained in:
2013-10-10 20:58:19 -07:00
parent 008ceaed9e
commit 0d1894d6e8
3 changed files with 5 additions and 2 deletions

View File

@@ -5,7 +5,7 @@
<div class="payment_links <%= "payment-highlighted" if params[:flash] == "welcome_msg" %>">
<%= render '/statistics/index' %>
<% if can? :read, resource.payments then %>
<% if can? :read, resource.payments.first then %>
<h3>Recorded Payments:</h3>
<ul>
<% resource.payments.sort_by(&:date).reverse!.each do |payment| %>