Skip to content

Commit

Permalink
Hide bucket list if there are less than 2 buckets for an account
Browse files Browse the repository at this point in the history
  • Loading branch information
jamis committed May 9, 2009
1 parent 46cc540 commit 093e620
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.rdoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
=== (new)

* Hide bucket list if there are less than 2 buckets for an account [Jamis Buck]

* Increase "recent buckets" window size to 10 (from 5) [Jamis Buck]

* Actor name autocompletion in forms [Jamis Buck]
Expand Down
15 changes: 8 additions & 7 deletions app/views/accounts/_account.html.haml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
%tr.account{:id => dom_id(account)}
%th= link_to(account.name, account)
= balance_cell(account, :classes => "total")
- reset_cycle
= render(account.buckets.recent)
- if account.buckets.length > Bucket::RECENT_WINDOW_SIZE
%tr.bucket
%td.more{:colspan => 2}
→
= link_to "See all #{account.buckets.length} buckets", account_buckets_path(account)
- if account.buckets.length > 1
- reset_cycle
= render(account.buckets.recent)
- if account.buckets.length > Bucket::RECENT_WINDOW_SIZE
%tr.bucket
%td.more{:colspan => 2}
→
= link_to "See all #{account.buckets.length} buckets", account_buckets_path(account)

0 comments on commit 093e620

Please sign in to comment.