Skip to content

Commit

Permalink
Merge pull request #406 from DigitalCurationCentre/vyruss/bugfixes
Browse files Browse the repository at this point in the history
Issues #401, #387
  • Loading branch information
briri committed Jun 7, 2017
2 parents f868df1 + b29360d commit f27cfe5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/plans_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def new
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
Expand Down
3 changes: 3 additions & 0 deletions app/views/plans/_plan_details.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,9 @@
<!-- If project has phases-->
<% phases = plan.template.phases %>
<% if phases.count == 1 %>
<div class="project_description">
<%= raw plan.template.description %>
</div>
<% phases.each do |phase| %>
<div class="move_2_right">
<%= link_to _('Answer questions'), edit_plan_phase_path(plan,phase), :class => 'btn btn-primary' %>
Expand Down

0 comments on commit f27cfe5

Please sign in to comment.