You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
2.3 KiB
56 lines
2.3 KiB
@inject SignInManager<ApplicationUser> SignInManager
|
|
@inject UserManager<ApplicationUser> UserManager
|
|
@if (Context.User.Identity.IsAuthenticated)
|
|
{
|
|
<section class="col-lg-4 col-md-5 col-xs-12">
|
|
<div class="esh-identity">
|
|
<form asp-controller="Account" asp-action="Logout" method="post"
|
|
id="logoutForm" class="navbar-right">
|
|
<section class="esh-identity-section">
|
|
@*<div class="esh-identity-name">@User.FindFirst(x => x.Type == "preferred_username").Value</div>*@
|
|
<img class="esh-identity-image" src="~/images/arrow-down.png">
|
|
</section>
|
|
<section class="esh-identity-drop">
|
|
<a class="esh-identity-item"
|
|
asp-page="/Order/Index">
|
|
<div class="esh-identity-name esh-identity-name--upper">My orders</div>
|
|
<img class="esh-identity-image" src="~/images/my_orders.png">
|
|
</a>
|
|
<a class="esh-identity-item"
|
|
asp-page="/Account/Manage/Index">
|
|
<div class="esh-identity-name esh-identity-name--upper">My account</div>
|
|
<img class="esh-identity-image" src="~/images/my_orders.png">
|
|
</a>
|
|
<a class="esh-identity-item"
|
|
href="javascript:document.getElementById('logoutForm').submit()">
|
|
<div class="esh-identity-name esh-identity-name--upper">Log Out</div>
|
|
<img class="esh-identity-image" src="~/images/logout.png">
|
|
</a>
|
|
</section>
|
|
</form>
|
|
</div>
|
|
</section>
|
|
|
|
<section class="col-lg-1 col-xs-12">
|
|
@await Component.InvokeAsync("Basket")
|
|
</section>
|
|
|
|
}
|
|
else
|
|
{
|
|
<section class="col-lg-1 col-lg-offset-3 col-md-3 col-xs-6">
|
|
<div class="esh-identity">
|
|
<section class="esh-identity-section">
|
|
<div class="esh-identity-item">
|
|
<a asp-page="/Account/Signin" class="esh-identity-name esh-identity-name--upper">
|
|
Login
|
|
</a>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
</section>
|
|
|
|
<section class="col-lg-1 col-xs-12">
|
|
@await Component.InvokeAsync("Basket")
|
|
</section>
|
|
}
|
|
|