mirror of
https://github.com/ditkrg/AuthorizationServerDemos.git
synced 2026-01-22 22:47:02 +00:00
38 lines
1.3 KiB
Plaintext
38 lines
1.3 KiB
Plaintext
@using IdentityServer4.Extensions
|
|
|
|
@{
|
|
string name = null;
|
|
if (!true.Equals(ViewData["signed-out"]))
|
|
{
|
|
name = Context.User?.GetDisplayName();
|
|
}
|
|
}
|
|
|
|
<div class="nav-page">
|
|
<nav class="navbar navbar-expand-lg navbar-dark bg-secondary">
|
|
|
|
<div class="container d-flex justify-content-between align-items-center">
|
|
<a href="~/" class="navbar-brand">
|
|
<img style="height: 50px;" src="~/images/logo.svg" alt="logo">
|
|
</a>
|
|
|
|
@if (!string.IsNullOrWhiteSpace(name))
|
|
{
|
|
<ul class="navbar-nav">
|
|
<li class="nav-item dropdown">
|
|
<a href="#" class="nav-link dropdown-toggle px-3 py-2 rounded bg-white text-secondary"
|
|
data-toggle="dropdown">@name <b class="caret"></b></a>
|
|
|
|
<div class="dropdown-menu">
|
|
<a class="dropdown-item" asp-action="RegisterMobileDevice" asp-controller="Account">Register
|
|
Mobile Device</a>
|
|
<a class="dropdown-item" asp-action="Logout" asp-controller="Account">Logout</a>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
}
|
|
</div>
|
|
|
|
</nav>
|
|
</div>
|