diff --git a/app/views/valuation/budget_investments/_dossier.html.erb b/app/views/valuation/budget_investments/_dossier.html.erb index c4c091389..db18ab04a 100644 --- a/app/views/valuation/budget_investments/_dossier.html.erb +++ b/app/views/valuation/budget_investments/_dossier.html.erb @@ -46,12 +46,3 @@ <%= t("valuation.budget_investments.show.valuation_finished") %>

<% end %> - -
- <% unless @comment_tree.nil? %> - <%= render partial: '/comments/comment_tree', locals: { comment_tree: @comment_tree, - comment_flags: @comment_flags, - display_comments_count: false, - valuation: true } %> - <% end %> -
diff --git a/app/views/valuation/budget_investments/_valuation_comments.html.erb b/app/views/valuation/budget_investments/_valuation_comments.html.erb new file mode 100644 index 000000000..491ce3323 --- /dev/null +++ b/app/views/valuation/budget_investments/_valuation_comments.html.erb @@ -0,0 +1,7 @@ +

<%= t("valuation.budget_investments.valuation_comments") %>

+<% unless @comment_tree.nil? %> + <%= render partial: '/comments/comment_tree', locals: { comment_tree: @comment_tree, + comment_flags: @comment_flags, + display_comments_count: false, + valuation: true } %> +<% end %> diff --git a/app/views/valuation/budget_investments/edit.html.erb b/app/views/valuation/budget_investments/edit.html.erb index c7321cf19..3e7c1369c 100644 --- a/app/views/valuation/budget_investments/edit.html.erb +++ b/app/views/valuation/budget_investments/edit.html.erb @@ -96,14 +96,7 @@ <% end %> -
- <% unless @comment_tree.nil? %> - <%= render partial: '/comments/comment_tree', locals: { comment_tree: @comment_tree, - comment_flags: @comment_flags, - display_comments_count: false, - valuation: true } %> - <% end %> -
+<%= render 'valuation/budget_investments/valuation_comments' %>

<%= @investment.title %>

diff --git a/app/views/valuation/budget_investments/show.html.erb b/app/views/valuation/budget_investments/show.html.erb index f5a30c5ed..05575d3a7 100644 --- a/app/views/valuation/budget_investments/show.html.erb +++ b/app/views/valuation/budget_investments/show.html.erb @@ -52,3 +52,4 @@

<%= render 'dossier' %> +<%= render 'valuation/budget_investments/valuation_comments' %> diff --git a/config/locales/en/valuation.yml b/config/locales/en/valuation.yml index fa53a432c..c8565fa35 100644 --- a/config/locales/en/valuation.yml +++ b/config/locales/en/valuation.yml @@ -73,6 +73,7 @@ en: save: Save changes notice: valuate: "Dossier updated" + valuation_comments: Valuation comments spending_proposals: index: geozone_filter_all: All zones diff --git a/config/locales/es/valuation.yml b/config/locales/es/valuation.yml index 9ddb2d009..c53e9cdc8 100644 --- a/config/locales/es/valuation.yml +++ b/config/locales/es/valuation.yml @@ -73,6 +73,7 @@ es: save: Guardar Cambios notice: valuate: "Dossier actualizado" + valuation_comments: Comentarios de evaluación spending_proposals: index: geozone_filter_all: Todos los ámbitos de actuación