diff --git a/app/views/budgets/investments/_investment_detail.erb b/app/views/budgets/investments/_investment_detail.erb new file mode 100644 index 000000000..15c0f3c75 --- /dev/null +++ b/app/views/budgets/investments/_investment_detail.erb @@ -0,0 +1,73 @@ +
+ <%= t("budgets.investments.show.code_html", code: investment.id) %> +
+ +<%= safe_html_with_links investment.description.html_safe %> + +<% if feature?(:map) && map_location_available?(@investment.map_location) %> ++ <%= t("budgets.investments.show.location_html", location: investment.location) %> +
+<% end %> + +<% if investment.organization_name.present? %> ++ <%= t("budgets.investments.show.organization_name_html", name: investment.organization_name) %> +
+<% end %> + +<% if feature?(:allow_attached_documents) %> + <%= render "documents/documents", + documents: investment.documents, + max_documents_allowed: Budget::Investment.max_documents_allowed %> +<% end %> + +<%= render "shared/tags", taggable: investment %> + +<% if investment.external_url.present? %> +<%= investment.unfeasibility_explanation %>
+<% end %> + +<% if investment.should_show_price_explanation? %> +<%= investment.price_explanation %>
+<% end %> + +<%= render "relationable/related_content", relationable: investment %> + +- <%= t("budgets.investments.show.code_html", code: investment.id) %> -
- - <%= safe_html_with_links investment.description.html_safe %> - - <% if feature?(:map) && map_location_available?(@investment.map_location) %> -- <%= t("budgets.investments.show.location_html", location: investment.location) %> -
- <% end %> - - <% if investment.organization_name.present? %> -- <%= t("budgets.investments.show.organization_name_html", name: investment.organization_name) %> -
- <% end %> - - <% if feature?(:allow_attached_documents) %> - <%= render "documents/documents", - documents: investment.documents, - max_documents_allowed: Budget::Investment.max_documents_allowed %> - <% end %> - - <%= render "shared/tags", taggable: investment %> - - <% if investment.external_url.present? %> -<%= investment.unfeasibility_explanation %>
- <% end %> - - <% if investment.should_show_price_explanation? %> -<%= investment.price_explanation %>
- <% end %> - - <%= render "relationable/related_content", relationable: @investment %> - -