-
- <%= render partial: 'ballot', locals: {
- investment: investment,
- investment_ids: investment_ids,
- ballot: ballot,
- } %>
+ <% elsif investment.winner? %>
+
+ <%= t("budgets.investments.show.project_winner") %>
-
+ <% elsif investment.selected? %>
+
+ <%= t("budgets.investments.show.project_selected_html") %>
+
+ <% elsif !investment.selected? %>
+
+ <%= t("budgets.investments.show.project_not_selected_html") %>
+
+ <% else %>
+
+
+
+ <%= t("budgets.investments.show.title") %>
+
+
+
+ <% end %>
+ <% if investment.should_show_price? %>
+
+
<%= t("budgets.investments.show.price") %>
+
+
+ <%= investment.formatted_price %>
+
+
+ <% end %>
<% end %>
- <% else %>
-
-
- <%= t("budgets.investments.show.title") %>
-
-
-
-
- <% if investment.unfeasible? %>
-
- <%= t("budgets.investments.show.project_unfeasible_html") %>
-
- <% elsif investment.winner? %>
-
- <%= t("budgets.investments.show.project_winner") %>
-
- <% elsif investment.selected? %>
-
- <%= t("budgets.investments.show.project_selected_html") %>
-
- <% elsif !investment.selected? %>
-
- <%= t("budgets.investments.show.project_not_selected_html") %>
-
- <% end %>
- <% if investment.should_show_price? %>
+ <%= render partial: 'shared/social_share', locals: {
+ share_title: t("budgets.investments.show.share"),
+ title: investment.title,
+ image_url: image_absolute_url(investment.image, :thumb),
+ url: budget_investment_url(investment.budget, investment),
+ description: investment.title
+ } %>
+
+ <% if current_user %>
-
<%= t("budgets.investments.show.price") %>
-
-
- <%= investment.formatted_price %>
-
-
+
+
+ <%= render 'follows/follow_button', follow: find_or_build_follow(current_user, investment) %>
<% end %>
- <% end %>
- <%= render partial: 'shared/social_share', locals: {
- share_title: t("budgets.investments.show.share"),
- title: investment.title,
- image_url: image_absolute_url(investment.image, :thumb),
- url: budget_investment_url(investment.budget, investment),
- description: investment.title
- } %>
- <% if current_user %>
-
-
+ <%= render 'communities/access_button', community: investment.community %>
- <%= render 'follows/follow_button', follow: find_or_build_follow(current_user, investment) %>
- <% end %>
-
- <%= render 'communities/access_button', community: investment.community %>
-
-
-