From 34ab9c6231481dc1e1b41bfd87977e6c13aee7c6 Mon Sep 17 00:00:00 2001 From: Adrien Maston Date: Tue, 3 Mar 2026 12:14:28 +0100 Subject: [PATCH] Update saas/app/views/devices/index.html.erb Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- saas/app/views/devices/index.html.erb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/saas/app/views/devices/index.html.erb b/saas/app/views/devices/index.html.erb index 7895790b1..f28f2224c 100644 --- a/saas/app/views/devices/index.html.erb +++ b/saas/app/views/devices/index.html.erb @@ -13,7 +13,9 @@ <%= device.name || "Unnamed device" %> (<%= device.platform == "apple" ? "iOS" : "Android" %>) - <%= tag.time "Added #{time_ago_in_words(device.created_at)} ago", datetime: device.created_at.to_i, class: "txt-subtle txt-x-small" %> + + Added <%= local_datetime_tag(device.created_at, style: :daysago) %> + <%= button_to saas.device_path(device), method: :delete, class: "btn btn--circle-mobile txt-small", data: { confirm: "Remove this device?" }, form: { class: "flex-item-no-shrink" } do %> <%= icon_tag "trash", class: "icon--mobile-only" %>