From: Anton Khorev Date: Sat, 18 Jan 2025 03:53:33 +0000 (+0300) Subject: Add link from settings to pd declaration X-Git-Tag: live~195^2~2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/7c551c5f73511931e555cd9e54971da175836234 Add link from settings to pd declaration --- diff --git a/app/views/accounts/edit.html.erb b/app/views/accounts/edit.html.erb index 2f336a330..ce7dd97a8 100644 --- a/app/views/accounts/edit.html.erb +++ b/app/views/accounts/edit.html.erb @@ -35,9 +35,12 @@ <% if current_user.terms_agreed? %> <%= t ".contributor terms.agreed" %> (" target="_new"><%= t ".contributor terms.link text" %>) +
<% if current_user.consider_pd? %> -
<%= t ".contributor terms.agreed_with_pd" %> + <% else %> + <%= t ".contributor terms.not_agreed_with_pd" %> + (<%= link_to t(".contributor terms.pd_link_text"), account_pd_declaration_path %>) <% end %> <% else %> <%= t ".contributor terms.not yet agreed" %> diff --git a/config/locales/en.yml b/config/locales/en.yml index 874ecaa85..5ea8abae2 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -259,6 +259,8 @@ en: agreed_with_pd: "You have also declared that you consider your edits to be in the Public Domain." link: "https://osmfoundation.org/wiki/Licence/Contributor_Terms" link text: "what is this?" + not_agreed_with_pd: "You haven't declared that you consider your edits to be in the Public Domain." + pd_link_text: "declare" save changes button: Save Changes delete_account: Delete Account... go_public: