@page "/" @attribute [Authorize] @using Khaemhat.Application.Licensing @using Khaemhat.Core.Common @inject ProductVersion Version @inject ILicenseGate Licenses @* Placeholder until the shell of M3 (SPEC §20): who is signed in, in which company, with which licence. Texts move to the it-IT resources with the localization of M3. *@ Khaemhat

Khaemhat v @Version.MajorMinor

Benvenuto, @context.User.FindFirst(SessionCookie.DisplayNameClaim)?.Value (@LevelLabel(context.User.FindFirst(SessionCookie.LevelClaim)?.Value)) @if (context.User.FindFirst(SessionCookie.CompanyClaim)?.Value is { } company) { · azienda @company }

Accesso, utenti, ruoli, licenze e log sono pronti; le schermate di lavoro arrivano con l'interfaccia della milestone 3. Licenza: @(Licenses.Current.Kind == LicenseKind.Trial ? "prova" : Licenses.Current.Licensee) · moduli @string.Join(", ", Licenses.Current.Modules.Order())

@code { private static string LevelLabel(string? level) => level switch { "SuperUser" => "super utente", "Administrator" => "amministratore", _ => "utente", }; }