From 10d7a1d89bf3a930c3f979d0d311bac94171dbf0 Mon Sep 17 00:00:00 2001 From: Manuel Ortega Date: Tue, 17 Oct 2017 14:37:27 +0200 Subject: [PATCH] Added investment's user generated tags to admin show and sort to the valuation tags --- .../admin/budget_investments/_written_by_author.html.erb | 5 +++++ app/views/admin/budget_investments/show.html.erb | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/app/views/admin/budget_investments/_written_by_author.html.erb b/app/views/admin/budget_investments/_written_by_author.html.erb index a913aff00..467d81481 100644 --- a/app/views/admin/budget_investments/_written_by_author.html.erb +++ b/app/views/admin/budget_investments/_written_by_author.html.erb @@ -56,3 +56,8 @@ <% end %> <%= safe_html_with_links @investment.description %> + +

+ <%= t("admin.budget_investments.show.tags") %> del usuario: + <%= @investment.tag_list.sort.join(', ') %> +

diff --git a/app/views/admin/budget_investments/show.html.erb b/app/views/admin/budget_investments/show.html.erb index f220c0955..5fa35a1fa 100644 --- a/app/views/admin/budget_investments/show.html.erb +++ b/app/views/admin/budget_investments/show.html.erb @@ -19,7 +19,7 @@

<%= t("admin.budget_investments.show.tags") %>: - <%= @investment.tags_on(:valuation).pluck(:name).join(', ') %> + <%= @investment.tags_on(:valuation).pluck(:name).sort.join(', ') %>