From 73f87f0f9f5a736a6e5e00b89ba05f376b9857dc Mon Sep 17 00:00:00 2001 From: 24c02 <163450896+24c02@users.noreply.github.com> Date: Thu, 26 Feb 2026 14:58:24 -0500 Subject: [PATCH] slacked id --- app/controllers/static_pages_controller.rb | 2 ++ app/views/static_pages/slack_id.html.erb | 35 ++++++++++++++++++++++ config/routes.rb | 1 + 3 files changed, 38 insertions(+) create mode 100644 app/views/static_pages/slack_id.html.erb diff --git a/app/controllers/static_pages_controller.rb b/app/controllers/static_pages_controller.rb index 68e73a9..9080f8c 100644 --- a/app/controllers/static_pages_controller.rb +++ b/app/controllers/static_pages_controller.rb @@ -35,4 +35,6 @@ class StaticPagesController < ApplicationController def security end + + def slack_id = render layout: "minimal" end diff --git a/app/views/static_pages/slack_id.html.erb b/app/views/static_pages/slack_id.html.erb new file mode 100644 index 0000000..12b258a --- /dev/null +++ b/app/views/static_pages/slack_id.html.erb @@ -0,0 +1,35 @@ + + +
+

Your Slack ID is:

+ + <% if current_identity&.slack_id.present? %> + <%= current_identity.slack_id %> + Click to copy + <% else %> +

No Slack ID linked to your account.

+ <% end %> +
diff --git a/config/routes.rb b/config/routes.rb index 519f37b..8cd9e89 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -239,6 +239,7 @@ Rails.application.routes.draw do root "static_pages#home" get "/welcome", to: "static_pages#welcome", as: :welcome + get "/slack-id", to: "static_pages#slack_id", as: :slack_id get "/oauth/welcome", to: "static_pages#oauth_welcome", as: :oauth_welcome get "/security", to: "static_pages#security", as: :security get "/activity", to: "audit_logs#index", as: :audit_logs