From 47e52e7aa9facae0e44fa9c72c08cd75db51b0db Mon Sep 17 00:00:00 2001 From: Max Wofford Date: Mon, 10 Mar 2025 10:46:23 -0400 Subject: [PATCH] Inform user when latest direct-entry heartbeat is --- app/views/users/edit.html.erb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/views/users/edit.html.erb b/app/views/users/edit.html.erb index 59ac2c5..74d9296 100644 --- a/app/views/users/edit.html.erb +++ b/app/views/users/edit.html.erb @@ -47,6 +47,15 @@

Config file

+ +

+ <% if current_user.most_recent_direct_entry_heartbeat %> + Your last heartbeat was <%= time_ago_in_words current_user.most_recent_direct_entry_heartbeat.created_at %> ago. + <% else %> + You haven't sent any heartbeats yet directly to this platform. + <% end %> +

+ <%= render "wakatime_config_display" %>