X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/6c1d73a509a1ac2216a704f3dc5534d573e5d7ae..bc70cae711fb6947233d6a750cb33f115aa7a01b:/app/views/account/deletions/show.html.erb?ds=inline diff --git a/app/views/account/deletions/show.html.erb b/app/views/account/deletions/show.html.erb index 99c1686d8..9b9b0f182 100644 --- a/app/views/account/deletions/show.html.erb +++ b/app/views/account/deletions/show.html.erb @@ -6,10 +6,7 @@
- - " type="image/svg+xml"> - <%= image_tag("notice.png", :srcset => image_path("notice.svg")) %> - + <%= notice_svg_tag %>

<%= t ".warning" %>

@@ -34,5 +31,13 @@
  • <%= t ".retain_email" %>
  • -<%= link_to t(".delete_account"), account_path, { :method => :delete, :class => "btn btn-danger", :data => { :confirm => t(".confirm_delete") } } %> +<% if current_user.deletion_allowed? %> + <%= link_to t(".delete_account"), account_path, { :method => :delete, :class => "btn btn-danger", :data => { :confirm => t(".confirm_delete") } } %> +<% else %> +
    + <%= t ".recent_editing_html", :time => friendly_date(current_user.deletion_allowed_at) %> +
    + +<% end %> + <%= link_to t(".cancel"), edit_account_path, :class => "btn btn-link" %>