<%= link_to "Impostazioni", admin_path, class: "hover:underline" %> · account globali. Gli admin vedono tutti i progetti; gli utenti solo quelli abilitati.
| Nome | Ruolo | Stato | Progetti | ||
|---|---|---|---|---|---|
| <%= user.full_name %> <% if user == current_user %>(tu)<% end %> | <%= user.email %> | <%= user.admin? ? "Admin" : "Utente" %> | <% if user.active? %> Attivo <% else %> Disabilitato <% end %> | <% if user.admin? %> Tutti <% else %> <% names = user.user_projects.select(&:enabled?).filter_map { |up| up.project&.name } %> <%= names.any? ? names.join(", ") : "—" %> <% end %> | <%= link_to "Modifica", edit_user_path(user), class: "text-zinc-700 hover:underline dark:text-zinc-300" %> |