identity-vault/app/views/public_activity/o_auth_token/_create.html.erb
nora 9998147a4e
epic: overhaul program management experience (#188)
* temp commit

* lemme do it

* nope

* let them do it too

* collab invite model

* better visuals on progman

* waow

* danger will robinson

* show apps on backend & link user

* first pass on app auditability!

* no lastnaming admins

* async frame that shit!

* waugh

* can't add yourself

* fix reinvite

* sidebar badging

* lint...

* gotta be on the app!

* let that get rescued by applcon

* already in revoke_all_authorizations

* woag

* the routes you grew up with no longer exist

* what would the UI for that even be?

* sorch

* much better!

* frickin validations
2026-03-02 22:15:13 -05:00

17 lines
850 B
Text

<%= render Components::PublicActivity::Snippet.new(activity) do %>
<%
app_name = activity.trackable&.application&.name || "(deleted app #{activity.trackable&.application_id})"
app_link = if defined?(current_user) && current_user.is_a?(Backend::User) && activity.trackable&.application
link_to app_name, developer_app_path(activity.trackable.application)
else
app_name
end
scopes = activity.trackable&.scopes
scopes_str = scopes.present? ? " (scopes: #{scopes})" : ""
%>
<% if defined?(current_identity) && activity.trackable&.resource_owner == current_identity %>
signed into <%= app_link %><%= scopes_str %>.
<% else %>
signed into <%= app_link %><%= scopes_str %> as <%= render activity.trackable&.resource_owner, capitalize: false if activity.trackable&.resource_owner %>.
<% end %>
<% end %>