diff --git a/app/controllers/plans_controller.rb b/app/controllers/plans_controller.rb index 89e7942..b0f3465 100644 --- a/app/controllers/plans_controller.rb +++ b/app/controllers/plans_controller.rb @@ -18,7 +18,7 @@ authorize @plan # Get all of the available funders and non-funder orgs - @funders = Org.funders.sort{|x,y| x.name <=> y.name } + @funders = Org.funders.joins(:templates).where(templates: {published: true}).uniq.sort{|x,y| x.name <=> y.name } @orgs = (Org.institutions + Org.managing_orgs).flatten.uniq.sort{|x,y| x.name <=> y.name } # Get the current user's org diff --git a/app/views/plans/_plan_details.html.erb b/app/views/plans/_plan_details.html.erb index 8b7bfb2..ee420d1 100644 --- a/app/views/plans/_plan_details.html.erb +++ b/app/views/plans/_plan_details.html.erb @@ -231,6 +231,9 @@ <% phases = plan.template.phases %> <% if phases.count == 1 %> +
+ <%= raw plan.template.description %> +
<% phases.each do |phase| %>
<%= link_to _('Answer questions'), edit_plan_phase_path(plan,phase), :class => 'btn btn-primary' %>