diff --git a/app/controllers/deliverables_controller.rb b/app/controllers/deliverables_controller.rb index 61567d1..9358b9a 100644 --- a/app/controllers/deliverables_controller.rb +++ b/app/controllers/deliverables_controller.rb @@ -28,7 +28,8 @@ class DeliverablesController < InheritedResources::Base def show if show_partial? - render :partial => 'deliverables/details_row', :locals => {:contract => @contract, :deliverable => @contract.deliverables.find(params[:id])} + @period = params[:period] + render :partial => 'deliverables/details_row', :locals => {:contract => @contract, :deliverable => @contract.deliverables.find(params[:id]), :period => @period} else redirect_to contract_url(@project, @contract) end diff --git a/app/views/deliverables/_details_row.html.erb b/app/views/deliverables/_details_row.html.erb index ffa832e..4cdc03a 100644 --- a/app/views/deliverables/_details_row.html.erb +++ b/app/views/deliverables/_details_row.html.erb @@ -1,3 +1,5 @@ +<% period ||= '' %> +