Refactor terms declined flash message to use a partial
This allows us to include a link in the flash message, without having to use html_safe. Also refactor to avoid having html angle brackets in the translation strings, while still allowing locale-specific urls.
This commit is contained in:
parent
3dd639c8d0
commit
0876ea0bee
3 changed files with 6 additions and 3 deletions
|
@ -2334,8 +2334,6 @@ en:
|
|||
auth no password: "With third party authentication a password is not required, but some extra tools or server may still need one."
|
||||
continue: Sign Up
|
||||
terms accepted: "Thanks for accepting the new contributor terms!"
|
||||
terms declined: "We are sorry that you have decided to not accept the new Contributor Terms. For more information, please see <a href=\"%{url}\">this wiki page</a>."
|
||||
terms declined url: https://wiki.openstreetmap.org/wiki/Contributor_Terms_Declined
|
||||
terms:
|
||||
title: "Terms"
|
||||
heading: "Terms"
|
||||
|
@ -2358,6 +2356,10 @@ en:
|
|||
france: "France"
|
||||
italy: "Italy"
|
||||
rest_of_world: "Rest of the world"
|
||||
terms_declined_flash:
|
||||
terms_declined_html: We are sorry that you have decided to not accept the new Contributor Terms. For more information, please see %{terms_declined_link}.
|
||||
terms_declined_link: this wiki page
|
||||
terms_declined_url: https://wiki.openstreetmap.org/wiki/Contributor_Terms_Declined
|
||||
no_such_user:
|
||||
title: "No such user"
|
||||
heading: "The user %{user} does not exist"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue