Extract link to verify account to a mehtod

We were using the same text and the same route in many places.
This commit is contained in:
Javi Martín
2019-10-01 22:19:20 +02:00
parent f8bd3d4f39
commit 86a205c8fc
14 changed files with 17 additions and 18 deletions

View File

@@ -24,7 +24,7 @@
<% elsif require_verified_resident_for_commentable?(commentable, current_user) %>
<br>
<div data-alert class="callout primary">
<%= t("comments.verified_only", verify_account: link_to(t("users.verify_account"), verification_path)).html_safe %>
<%= t("comments.verified_only", verify_account: link_to_verify_account).html_safe %>
</div>
<% elsif allow_comments %>
<%= render "comments/form", { commentable: commentable,