Skip to content

Commit

Permalink
Showing a link to the net worth history page
Browse files Browse the repository at this point in the history
  • Loading branch information
konklone committed Mar 30, 2010
1 parent ca144ac commit bc191f1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions public/ohnomymoney.css
Expand Up @@ -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;}

Expand Down Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions views/index.erb
Expand Up @@ -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">
Expand Down

0 comments on commit bc191f1

Please sign in to comment.