contex menu
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user