<% cache [locale_and_user_status(investment), 'index', investment, investment.author] do %>
<%= t("budget.investments.investment.title") %>
diff --git a/app/views/budgets/investments/_votes.html.erb b/app/views/budgets/investments/_votes.html.erb
new file mode 100644
index 000000000..62ea74283
--- /dev/null
+++ b/app/views/budgets/investments/_votes.html.erb
@@ -0,0 +1,46 @@
+<% reason = investment.reason_for_not_being_selectable_by(current_user) %>
+<% voting_allowed = true unless reason.presence == :not_voting_allowed %>
+<% user_voted_for = voted_for?(@budget_investment_votes, investment) %>
+
+
+
+
+ <%= t("budget.investments.investment.supports", count: investment.total_votes) %>
+
+
+
+ <% if user_voted_for %>
+
+ <%= t("budget.investments.investment.already_supported") %>
+
+ <% elsif voting_allowed %>
+
+ <%= link_to vote_url,
+ class: "button button-support small expanded",
+ title: t('budget.investments.investment.support_title'),
+ method: "post",
+ remote: true,
+ "aria-hidden" => css_for_aria_hidden(reason) do %>
+ <%= t("budget.investments.investment.vote") %>
+ <% end %>
+ <% end %>
+
+
+ <% if reason.present? && !user_voted_for %>
+
+
+ <%= t("votes.budget_investments.#{reason}",
+ verify_account: link_to(t("votes.verify_account"), verification_path),
+ signin: link_to(t("votes.signin"), new_user_session_path),
+ signup: link_to(t("votes.signup"), new_user_registration_path)
+ ).html_safe %>
+
+
+ <% end %>
+
+ <% if user_voted_for && setting['twitter_handle'] %>
+
+ <%= social_share_button_tag("#{investment.title} #{setting['twitter_hashtag']}", url: budget_investment_url(budget_id: @budget.id, id: investment.id), via: setting['twitter_handle']) %>
+
+ <% end %>
+
diff --git a/app/views/budgets/investments/show.html.erb b/app/views/budgets/investments/show.html.erb
index 55cd12a6f..58e6027ea 100644
--- a/app/views/budgets/investments/show.html.erb
+++ b/app/views/budgets/investments/show.html.erb
@@ -1,4 +1,83 @@
-
<%= @investment.title %>
+<% provide :title do %><%= @investment.title %><% end %>
-
<%= @investment.author.username %>
- <%= @investment.price %>
+
+
+
+ <%= link_to :back, class: "back" do %>
+
+ <%= t("shared.back") %>
+ <% end %>
+
+
<%= @investment.title %>
+
+
+ <%= render '/shared/author_info', resource: @investment %>
+
+ •
+ <%= l @investment.created_at.to_date %>
+ •
+ <%= heading_name(@investment.heading) %>
+
+
+
+
+ <%= t("budget.investments.show.code") %>
+ <%= @investment.id %>
+
+
+ <%= safe_html_with_links @investment.description.html_safe %>
+
+ <% if @investment.external_url.present? %>
+
+ <%= text_with_links @investment.external_url %>
+
+ <% end %>
+
+ <% if @investment.unfeasible? && @investment.feasible_explanation.present? %>
+
<%= t('budget.investments.show.unfeasibility_explanation') %>
+
<%= @investment.feasible_explanation %>
+ <% end %>
+
+ <% if @investment.feasible? && @investment.price_explanation.present? %>
+
<%= t('budget.investments.show.price_explanation') %>
+
<%= @investment.price_explanation %>
+ <% end %>
+
+
+ <% if (@budget.selecting? && !@investment.unfeasible?) ||
+ (@budget.balloting? && @investment.feasible?) %>
+
+ <% end %>
+
+
+
+
+<% unless namespace == 'management' %>
+ <%= render "budgets/investments/comments" %>
+<% end %>
+ <%= t("debates.show.comments_title") %> + (<%= @investment.comments_count %>) +
+ + <%= render 'shared/wide_order_selector', i18n_namespace: "comments" %> + + <% if user_signed_in? %> + <%= render 'comments/form', {commentable: @investment, parent_id: nil, toggeable: false} %> + <% else %> ++ +