+
+ <%= link_to :back, class: "back" do %>
+
+ <%= t("shared.back") %>
+ <% end %>
- <% if investment.author.hidden? || investment.author.erased? %>
-
•
-
- <%= t("budget.investments.show.author_deleted") %>
-
- <% else %>
-
•
-
- <%= investment.author.name %>
-
- <% if investment.author.official? %>
-
•
-
- <%= investment.author.official_position %>
-
- <% end %>
- <% end %>
+
<%= investment.title %>
-
•
- <%= heading_name(investment.heading) %>
-
-
-
<%= link_to investment.description, namespaced_budget_investment_path(investment) %>
-
-
- <% end %>
-
+
+ <%= render '/shared/author_info', resource: investment %>
+
+ •
+ <%= l investment.created_at.to_date %>
+ •
+ <%= heading_name(investment.heading) %>
- <% unless investment.unfeasible? %>
+
+
+ <%= t("budget.investments.show.code") %>
+ <%= investment.id %>
+
- <% if @budget.selecting? || @budget.on_hold? %>
+ <%= safe_html_with_links investment.description.html_safe %>
-
- <%= render 'votes',
- { investment: investment,
- vote_url: vote_budget_investment_path(@budget, investment, value: 'yes') } %>
-
+ <% if investment.external_url.present? %>
+
+ <%= text_with_links investment.external_url %>
+
+ <% end %>
- <% elsif @budget.balloting? %>
-
- <%= render 'ballot', investment: investment %>
-
- <% end %>
+ <% if investment.unfeasible? && investment.unfeasibility_explanation.present? %>
+
<%= t('budget.investments.show.unfeasibility_explanation') %>
+
<%= investment.unfeasibility_explanation %>
+ <% end %>
+ <% if investment.feasible? && investment.price_explanation.present? %>
+
<%= t('budget.investments.show.price_explanation') %>
+
<%= investment.price_explanation %>
<% end %>
+
+ <% if investment.should_show_aside? %>
+