contex menu

This commit is contained in:
David Štaleker
2024-02-29 06:40:49 +01:00
parent 26a78d5188
commit 52f4900103
19 changed files with 3111 additions and 11 deletions

View File

@@ -1,12 +1,14 @@
@using System.Security.Claims
@using Microsoft.AspNetCore.Identity
@* @using Microsoft.EntityFrameworkCore
@inject UserManager<IdentityApplicationUser> _userManager *@
@using Microsoft.AspNetCore.Mvc.TagHelpers
@using Microsoft.EntityFrameworkCore
@using ZpcBulletinBoard.Models
@inject UserManager<IdentityApplicationUser> _userManager
@{bool hideToggle = ViewData["LayoutNavbarHideToggle"] != null && ViewData["LayoutNavbarHideToggle"].ToString() == "True";}
@* @{
var user = _userManager.Users.Include(x => x.Company).FirstOrDefaultAsync(x => x.Id == _userManager.GetUserAsync(User).Result.Id).Result;
} *@
@{
var user = _userManager.Users.FirstOrDefaultAsync(x => x.Id == _userManager.GetUserAsync(User).Result.Id).Result;
}
<!-- Layout navbar -->
<nav class="layout-navbar navbar navbar-expand-lg align-items-lg-center bg-white container-p-x" id="layout-navbar">
@@ -36,7 +38,7 @@
<div class="navbar-nav align-items-lg-center">
<div class="navbar-text col-lg-12 order-lg-1 w-auto w-lg-100 small px-0">
@* <strong>@user.Company.Title</strong>, @user.Company.Street @user.Company.HouseNumber, @user.Company.PostNumber @user.Company.Post *@
<strong>@user.Name</strong> @user.Surname
</div>
</div>