Use the same I18n key for "verify account" text

We were using several different keys, all of them having the same text.
This commit is contained in:
Javi Martín
2019-10-01 22:13:46 +02:00
parent 78c6f6f7e9
commit 2ccc283bb7
19 changed files with 15 additions and 26 deletions

View File

@@ -38,8 +38,7 @@
<% else %>
<div class="callout warning margin-top">
<%= t("budgets.investments.index.sidebar.verified_only",
verify: link_to(t("budgets.investments.index.sidebar.verify_account"),
verification_path)).html_safe %>
verify: link_to(t("users.verify_account"), verification_path)).html_safe %>
</div>
<% end %>
<% else %>

View File

@@ -43,7 +43,7 @@
<% if reason.present? && !ballot.has_investment?(investment) %>
<div class="js-participation-not-allowed participation-not-allowed" style="display:none">
<% verify_account = link_to(t("votes.verify_account"), verification_path) %>
<% verify_account = link_to(t("users.verify_account"), verification_path) %>
<% signin = link_to(t("users.signin"), new_user_session_path) %>
<% signup = link_to(t("users.signup"), new_user_registration_path) %>
<% my_heading = link_to(investment.heading.name,

View File

@@ -7,8 +7,7 @@
<% else %>
<div class="callout warning">
<%= t("budgets.investments.index.sidebar.verified_only",
verify: link_to(t("budgets.investments.index.sidebar.verify_account"),
verification_path)).html_safe %>
verify: link_to(t("users.verify_account"), verification_path)).html_safe %>
</div>
<% end %>
<% end %>

View File

@@ -33,7 +33,7 @@
<small>
<%= t("votes.budget_investments.#{reason}",
count: investment.group.max_votable_headings,
verify_account: link_to(t("votes.verify_account"), verification_path),
verify_account: link_to(t("users.verify_account"), verification_path),
signin: link_to(t("users.signin"), new_user_session_path),
signup: link_to(t("users.signup"), new_user_registration_path),
supported_headings: (current_user && current_user.headings_voted_within_group(investment.group).map(&:name).sort.to_sentence)

View File

@@ -24,7 +24,7 @@
<% else %>
<div class="callout warning margin-top">
<%= t("budgets.investments.index.sidebar.verified_only",
verify: link_to(t("budgets.investments.index.sidebar.verify_account"), verification_path)).html_safe %>
verify: link_to(t("users.verify_account"), verification_path)).html_safe %>
</div>
<% end %>
<% else %>