Permalink
Browse files

Hardcode coloring on index page

  • Loading branch information...
1 parent b260491 commit b7a1cc2dade798e68ffeff486fedac382529e76e @konklone konklone committed Mar 25, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 views/index.erb
View
@@ -22,7 +22,7 @@
<% balance = account.balances.first :order => "created_at DESC" %>
<div class="account">
<h3><%= account.name %></h3>
- <span class="<%= direction balance.amount %>"><%= format_amount balance.amount %></span>
+ <span class="negative"><%= format_amount balance.amount %></span>
<a href="/<%= user.handle %>/account/<%= account.id %>">history</a>
</div>
<% end %>
@@ -35,7 +35,7 @@
<% balance = account.balances.first :order => "created_at DESC" %>
<div class="account">
<h3><%= account.name %></h3>
- <span class="<%= direction balance.amount %>"><%= format_amount balance.amount %></span>
+ <span class="positive"><%= format_amount balance.amount %></span>
<a href="/<%= user.handle %>/account/<%= account.id %>">history</a>
</div>
<% end %>

0 comments on commit b7a1cc2

Please sign in to comment.