Permalink
Browse files

Showing a link to the net worth history page

  • Loading branch information...
1 parent ca144ac commit bc191f1d8cbc3d16154bcf6dcf3dff912ed630cb @konklone konklone committed Mar 30, 2010
Showing with 5 additions and 4 deletions.
  1. +4 −4 public/ohnomymoney.css
  2. +1 −0 views/index.erb
View
8 public/ohnomymoney.css
@@ -25,7 +25,7 @@ div.worth {
}
div.account {margin: 40px 0 70px 0; text-align: center;}
-div.account span {display: block;}
+div.account span, div.worth span {display: block;}
div.worth img {margin-top: 35px;}
@@ -102,12 +102,12 @@ span.negative {color: #b61515;}
.worth h4 {font-size: 0.8em; color: #7f7f7f;}
.worth img {margin-bottom: -5px; margin-left: 5px;}
-.accounts a {
+.accounts a, .worth a {
font-size: 0.8em;
font-family: gotham, verdana, sans-serif;
}
-.accounts.left a, .title h2.negative {color: #b61515;}
-.accounts.right a, .title h2.positive {color: #3fb021;}
+.accounts.left a, .worth a.negative, .title h2.negative {color: #b61515;}
+.accounts.right a, .worth a.positive, .title h2.positive {color: #3fb021;}
.worth {
background: #f5f5f5;
View
1 views/index.erb
@@ -46,6 +46,7 @@
<h3>Net Worth</h3>
<% balance = worth.balances.first :order => "created_at DESC" %>
<span class="<%= direction balance.amount %>"><%= format_amount balance.amount %></span>
+ <a class="<%= direction balance.amount %>" href="/<%= user.handle %>/account/<%= worth.id %>">history</a>
<h4>
as of <%= date Time.now %>
<a href="/<%= user.handle %>/worth.xml">

0 comments on commit bc191f1

Please sign in to comment.