mirror of
https://github.com/System-End/identity-vault.git
synced 2026-04-19 18:35:13 +00:00
* 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
17 lines
850 B
Text
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 %>
|