diff --git a/lib/phoenix_kit_web/live/sessions_live.html.heex b/lib/phoenix_kit_web/live/sessions_live.html.heex index 5eb048df..c6c9d079 100644 --- a/lib/phoenix_kit_web/live/sessions_live.html.heex +++ b/lib/phoenix_kit_web/live/sessions_live.html.heex @@ -5,9 +5,9 @@ current_path={@current_path} >
Monitor and manage active user sessions
|
{session.user_email}
ID: {session.user_id}
|
-
-
+
+ <%!-- Token --%>
{session.token_preview}...
|
-
-
+
+ <%!-- User Status --%>
<% {badge_class, badge_text} = user_status_badge(session.user_is_active, session.user_confirmed_at) %> @@ -263,29 +265,39 @@ {badge_text} | - - + + <%!-- Created --%>
- {UtilsDate.format_datetime_with_user_format(session.created_at)}
+
+
{UtilsDate.format_date_with_user_format(session.created_at)}
+
+ {UtilsDate.format_time_with_user_format(session.created_at)}
+
+ |
-
-
+
+ <%!-- Age --%>
<% {age_class, age_text} = format_age_badge(session.age_in_days) %> {age_text} | - - + + <%!-- Expires --%>
- {UtilsDate.format_datetime_with_user_format(session.expires_at)}
+
+
{UtilsDate.format_date_with_user_format(session.expires_at)}
+
+ {UtilsDate.format_time_with_user_format(session.expires_at)}
+
+ |
-
-
+
+ <%!-- Actions --%>
-
+ <%!-- Revoke Single Session --%>
-
-
+
+ <%!-- Revoke All User Sessions --%>
-
-
+
+ <%!-- Pagination --%>
<%= if @total_pages > 1 do %>
diff --git a/lib/phoenix_kit_web/live/users_live.html.heex b/lib/phoenix_kit_web/live/users_live.html.heex
index 73161e65..4559b5e6 100644
--- a/lib/phoenix_kit_web/live/users_live.html.heex
+++ b/lib/phoenix_kit_web/live/users_live.html.heex
@@ -209,10 +209,24 @@
|
- {UtilsDate.format_datetime_with_user_format(user.inserted_at)}
+
+
{UtilsDate.format_date_with_user_format(user.inserted_at)}
+
+ {UtilsDate.format_time_with_user_format(user.inserted_at)}
+
+ |
- {UtilsDate.format_datetime_with_user_format(user.confirmed_at)}
+
+ <%= if user.confirmed_at do %>
+
{UtilsDate.format_date_with_user_format(user.confirmed_at)}
+
+ {UtilsDate.format_time_with_user_format(user.confirmed_at)}
+
+ <% else %>
+ Never
+ <% end %>
+ |
|