<% provide :title, @investment.title %>
<% content_for :canonical do %>
  <%= render "shared/canonical", href: budget_investment_url %>
<% end %>

<%= render "/budgets/investments/investment_show",
           investment: @investment,
           investment_ids: @investment_ids,
           ballot: @ballot %>

<div class="row">
  <div class="small-12 column">
    <%= render "budgets/investments/filter_subnav" %>
  </div>
</div>

<div class="tabs-content" data-tabs-content="investments_tabs">
  <div class="tabs-panel is-active" id="tab-comments">
    <%= render MachineLearning::CommentsSummaryComponent.new(@investment) %>
    <%= render Shared::CommentsComponent.new(@investment, @comment_tree) %>
  </div>

  <%= render "milestones/milestones", milestoneable: @investment %>
</div>
