|
11 | 11 | = render "comments/new", :commentable => @account
|
12 | 12 | = render :partial => "common/timeline", :collection => @timeline
|
13 | 13 |
|
14 |
| -= section(@account, :tasks) |
15 |
| -.log#tasks |
16 |
| - = render "common/tasks" |
| 14 | += hook(:show_account_bottom, self) do |
17 | 15 |
|
18 |
| -= section(@account, :contacts) |
19 |
| -.list#contacts |
20 |
| - - @contacts = @account.contacts.paginate(:page => 1, :per_page => 20) |
21 |
| - = render :partial => "contacts/contact", :collection => @contacts |
22 |
| -= will_paginate @contacts, :id => true, :params => {:action => :contacts} |
| 16 | + = section(@account, :tasks) |
| 17 | + .log#tasks |
| 18 | + = render "common/tasks" |
23 | 19 |
|
24 |
| -%br( style="clear:both" ) |
| 20 | + = section(@account, :contacts) |
| 21 | + .list#contacts |
| 22 | + - @contacts = @account.contacts.paginate(:page => 1, :per_page => 20) |
| 23 | + = render :partial => "contacts/contact", :collection => @contacts |
| 24 | + = will_paginate @contacts, :id => true, :params => {:action => :contacts} |
25 | 25 |
|
26 |
| -= section(@account, :opportunities) |
27 |
| -.list#opportunities |
28 |
| - - @opportunities = @account.opportunities.paginate(:page => 1, :per_page => 20) |
29 |
| - = render :partial => "opportunities/opportunity", :collection => @opportunities |
30 |
| -= will_paginate @opportunities, :id => true, :params => {:action => :opportunities} |
| 26 | + %br( style="clear:both" ) |
31 | 27 |
|
32 |
| -= load_select_popups_for(@account, :tasks, :contacts, :opportunities) |
| 28 | + = section(@account, :opportunities) |
| 29 | + .list#opportunities |
| 30 | + - @opportunities = @account.opportunities.paginate(:page => 1, :per_page => 20) |
| 31 | + = render :partial => "opportunities/opportunity", :collection => @opportunities |
| 32 | + = will_paginate @opportunities, :id => true, :params => {:action => :opportunities} |
| 33 | + |
| 34 | + = load_select_popups_for(@account, :tasks, :contacts, :opportunities) |
33 | 35 |
|
34 |
| -= hook(:show_account_bottom, self) |
|
0 commit comments