From c471a16dd64efcf6b4f0241b7c163867f6bb978e Mon Sep 17 00:00:00 2001 From: Nenad Vujicic Date: Thu, 6 Jun 2024 14:35:31 +0200 Subject: [PATCH] Add last edited date to user profile Fixes #3437 --- app/views/users/show.html.erb | 2 ++ config/locales/en.yml | 2 ++ 2 files changed, 4 insertions(+) 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 -- 2.39.5