From e891943aa7df254414cd9fa14efb2935f09c2565 Mon Sep 17 00:00:00 2001 From: DualFroz Date: Fri, 4 Sep 2026 19:34:16 +0200 Subject: [PATCH] feat(login-sessions): add index --- .../blog/app/views/login_sessions/index.erb | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 examples/blog/app/views/login_sessions/index.erb diff --git a/examples/blog/app/views/login_sessions/index.erb b/examples/blog/app/views/login_sessions/index.erb new file mode 100644 index 0000000..c5ff459 --- /dev/null +++ b/examples/blog/app/views/login_sessions/index.erb @@ -0,0 +1,31 @@ +<% if notice %> +

<%= notice %>

+<% end %> + +

<%= t('login_sessions.heading') %>

+ + + +<% if other_sessions.empty? %> +

<%= t('login_sessions.no_other_devices') %>

+<% else %> +<%== button_to(t('login_sessions.sign_out_others'), url_for(:sign_out_others_login_sessions), method: :post, + data_confirm: t('login_sessions.confirm_sign_out_others')) %> +<% end %> + +

<%== link_to(t('posts.back_to_list'), url_for(:posts)) %>