diff --git a/app/views/budgets/investments/_sidebar.html.erb b/app/views/budgets/investments/_sidebar.html.erb index 830b60634..2776a823f 100644 --- a/app/views/budgets/investments/_sidebar.html.erb +++ b/app/views/budgets/investments/_sidebar.html.erb @@ -13,6 +13,14 @@ <% end %> <% end %> +<% if @heading && can?(:show, @ballot) %> +
+ <%= t("budgets.investments.index.sidebar.voted_info", + link: link_to(t("budgets.investments.index.sidebar.voted_info_link"), + budget_ballot_path(@budget))).html_safe %> +
+<% end %> + <%= render "shared/tag_cloud", taggable: 'budget/investment' %> <%= render 'budgets/investments/categories' %> @@ -45,8 +53,4 @@ <% end %> <% end %> - -- <%= t("budgets.investments.index.sidebar.voted_info") %> -
<% end %> diff --git a/config/locales/budgets.en.yml b/config/locales/budgets.en.yml index 14f07a23c..66d4d2715 100644 --- a/config/locales/budgets.en.yml +++ b/config/locales/budgets.en.yml @@ -61,7 +61,8 @@ en: voted_html: one: "You voted one proposal with a cost of %{amount_spent}" other: "You voted %{count} proposals with a cost of %{amount_spent}" - voted_info: You can change your vote at any time until the close of this phase. No need to spend all the money available. + voted_info: You can %{link} at any time until the close of this phase. No need to spend all the money available. + voted_info_link: change your vote zero: You have not voted any investment project. verified_only: "To create a new budget investment %{verify}." verify_account: "verify your account" diff --git a/config/locales/budgets.es.yml b/config/locales/budgets.es.yml index 2f8b7e3ad..7391f12cb 100644 --- a/config/locales/budgets.es.yml +++ b/config/locales/budgets.es.yml @@ -61,7 +61,8 @@ es: voted_html: one: "Has votado una propuesta por un valor de %{amount_spent}" other: "Has votado %{count} propuestas por un valor de %{amount_spent}" - voted_info: Puedes cambiar tus votos en cualquier momento hasta el cierre de esta fase. No hace falta que gastes todo el dinero disponible. + voted_info: Puedes %{link} en cualquier momento hasta el cierre de esta fase. No hace falta que gastes todo el dinero disponible. + voted_info_link: cambiar tus votos zero: "Todavía no has votado ninguna propuesta de inversión." verified_only: "Para crear una nueva propuesta de inversión %{verify}." verify_account: "verifica tu cuenta"