<%= @group.name %>

<% if @group.description.present? %>

<%= @group.description %>

<% end %>
<%= link_to "Edit", edit_admin_group_path(@group), class: "rounded-md bg-white px-3 py-2 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50" %> <%= button_to "Delete", admin_group_path(@group), method: :delete, data: { turbo_confirm: "Are you sure?" }, class: "rounded-md bg-red-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-red-500" %>

Members (<%= @members.count %>)

<% if @members.any? %>
    <% @members.each do |user| %>
  • <%= user.email_address %>

    <% if user.admin? %> Admin <% end %> <% if user.totp_enabled? %> 2FA <% end %> <%= user.status.titleize %>
    <%= link_to "View", admin_user_path(user), class: "text-blue-600 hover:text-blue-900 text-sm" %>
  • <% end %>
<% else %>

No members in this group yet.

<% end %>

Assigned Applications (<%= @applications.count %>)

<% if @applications.any? %>
    <% @applications.each do |app| %>
  • <%= app.name %>

    <% case app.app_type %> <% when "oidc" %> OIDC <% when "trusted_header" %> ForwardAuth <% end %> <% if app.active? %> Active <% else %> Inactive <% end %>
    <%= link_to "View", admin_application_path(app), class: "text-blue-600 hover:text-blue-900 text-sm" %>
  • <% end %>
<% else %>

This group is not assigned to any applications.

<% end %>