X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/98bfaace9aeba7fb387596cc16b2e661506173c6..29020530a8fabe1d02e3bc9c41970c9030efc380:/app/views/account/deletions/show.html.erb
diff --git a/app/views/account/deletions/show.html.erb b/app/views/account/deletions/show.html.erb
index ddc821677..0ed4d663f 100644
--- a/app/views/account/deletions/show.html.erb
+++ b/app/views/account/deletions/show.html.erb
@@ -31,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" %>