From: Nenad Vujicic Date: Thu, 6 Jun 2024 12:35:31 +0000 (+0200) Subject: Add last edited date to user profile X-Git-Tag: live~449^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/c471a16dd64efcf6b4f0241b7c163867f6bb978e?ds=sidebyside;hp=-c Add last edited date to user profile Fixes #3437 --- c471a16dd64efcf6b4f0241b7c163867f6bb978e diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb index b6c5c6053..2c40cfebe 100644 --- a/app/views/users/show.html.erb +++ b/app/views/users/show.html.erb @@ -137,6 +137,8 @@
<%= t ".mapper since" %>
<%= l @user.created_at.to_date, :format => :long %>
+
<%= t ".last map edit" %>
+
<%= l @user.changesets.first&.created_at&.to_date, :format => :long, :default => t(".no activity yet") %>
<% unless @user.terms_agreed %>
<%= t ".ct status" %>
diff --git a/config/locales/en.yml b/config/locales/en.yml index 4a103b21e..1da263d77 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -2828,6 +2828,8 @@ en: remove as friend: Unfriend add as friend: Add Friend mapper since: "Mapper since:" + last map edit: "Last map edit:" + no activity yet: "No activity yet" uid: "User id:" ct status: "Contributor terms:" ct undecided: Undecided