[openstreetmap/openstreetmap-website] Account deletion cool-down period (PR #4313)
Anton Khorev
notifications at github.com
Wed Oct 25 10:57:02 UTC 2023
@AntonKhorev commented on this pull request.
> @@ -31,5 +31,13 @@
<li><%= t ".retain_email" %></li>
</ul>
-<%= link_to t(".delete_account"), account_path, { :method => :delete, :class => "btn btn-danger", :data => { :confirm => t(".confirm_delete") } } %>
+<% if @allowed_at %>
+ <div class="alert alert-warning">
+ <%= t ".recent_editing_html", :time => friendly_date_time_element(@allowed_at) %>
+ </div>
+ <button class="btn btn-danger" disabled><%= t(".delete_account") %></button>
changed to btn-secondary
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/4313#discussion_r1371543780
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/4313/review/1696976308 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20231025/0a3a02bd/attachment.htm>
More information about the rails-dev
mailing list