app/views/opportunities/show.html.haml in fat_free_crm-0.11.0 vs app/views/opportunities/show.html.haml in fat_free_crm-0.11.1
- old
+ new
@@ -11,26 +11,12 @@
= render "comments/new", :commentable => @opportunity
= render :partial => "shared/timeline", :collection => @timeline
= hook(:show_opportunity_bottom, self) do
- = section(@opportunity, :tasks)
- .log#tasks
- = render "shared/tasks"
+ = render :partial => "tasks/tasks", :locals => {:object => @opportunity}
- = section(@opportunity, :contacts)
- .list#contacts
- - @contacts = @opportunity.contacts.paginate(:page => 1, :per_page => 20)
- = render :partial => "contacts/contact", :collection => @opportunity.contacts.paginate(:page => 1, :per_page => 20)
- = will_paginate @contacts, :id => true, :params => {:action => :contacts}
+ = render :partial => "contacts/contacts", :locals => {:object => @opportunity}
- = load_select_popups_for(@opportunity, :tasks, :contacts)
+ = render :partial => "versions/versions", :locals => {:object => @opportunity}
- %br( style="clear:both" )
-
- - if Setting.paper_trail_ui_enabled
- %br
- = content_tag(:div, t(:versions), :class => :subtitle)
- .list#versions
- - @versions = @opportunity.versions.except(:order).order('created_at DESC').paginate(:page => 1, :per_page => 20)
- = render :partial => "versions/version", :collection => @versions
- = will_paginate @versions, :id => true, :params => {:action => :versions}
+ = load_select_popups_for(@opportunity, :tasks, :contacts)