Update saas/app/views/devices/index.html.erb

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Adrien Maston
2026-03-03 12:14:28 +01:00
committed by GitHub
parent b8f7d5be2f
commit 34ab9c6231
+3 -1
View File
@@ -13,7 +13,9 @@
<strong><%= device.name || "Unnamed device" %></strong> <strong><%= device.name || "Unnamed device" %></strong>
(<%= device.platform == "apple" ? "iOS" : "Android" %>) (<%= device.platform == "apple" ? "iOS" : "Android" %>)
</span> </span>
<%= tag.time "Added #{time_ago_in_words(device.created_at)} ago", datetime: device.created_at.to_i, class: "txt-subtle txt-x-small" %> <span class="txt-subtle txt-x-small">
Added <%= local_datetime_tag(device.created_at, style: :daysago) %>
</span>
</div> </div>
<%= 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 %> <%= 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" %> <%= icon_tag "trash", class: "icon--mobile-only" %>