web: založení projektu Helpdesk.Web a layout aplikace
ASP.NET Core MVC (.NET 10) s Bootstrapem 5, layout s menu podle role, chybové stránky, bezpečnostní hlavičky (CSP, Referrer-Policy) a česká kultura. Refs #19, #20
This commit is contained in:
1 parent
b402d9f92c
commit
abd075287c
25 files changed
+523
No files matched your search
@@ -0,0 +1,12 @@
|
||||
@{
|
||||
var role = User.FindFirst(ClaimTypes.Role)?.Value;
|
||||
}
|
||||
<div class="dropdown">
|
||||
<button class="btn btn-link app-user-toggle dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false">
|
||||
<span class="fw-semibold">@User.Identity?.Name</span>
|
||||
<span class="badge app-role-badge ms-1">@UserRoles.DisplayName(role)</span>
|
||||
</button>
|
||||
<ul class="dropdown-menu dropdown-menu-end">
|
||||
<li><span class="dropdown-item-text small text-body-secondary">@User.FindFirst(ClaimTypes.Email)?.Value</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
Reference in new issue
Block a user