mirror of
https://github.com/ditkrg/AuthorizationServerDemos.git
synced 2026-01-23 03:36:52 +00:00
Changes the navbar on the Tax App
This commit is contained in:
parent
3f867ce97f
commit
d053835810
@ -15,27 +15,27 @@
|
|||||||
<header>
|
<header>
|
||||||
<nav
|
<nav
|
||||||
class="navbar navbar-expand-sm justify-content-between navbar-toggleable-sm navbar-light bg-warning border-bottom box-shadow mb-3">
|
class="navbar navbar-expand-sm justify-content-between navbar-toggleable-sm navbar-light bg-warning border-bottom box-shadow mb-3">
|
||||||
<div class="container">
|
<div class="container d-inline-flex justify-content-between w-100">
|
||||||
<a class="navbar-brand" asp-area="" asp-page="/Index">OidcSamples.TaxApp</a>
|
|
||||||
|
<img style="height: 72px;" src="~/images/logo.svg" alt="">
|
||||||
|
@* <a class="navbar-brand" asp-area="" asp-page="/Index">Tax Services</a> *@
|
||||||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target=".navbar-collapse"
|
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target=".navbar-collapse"
|
||||||
aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
||||||
<span class="navbar-toggler-icon"></span>
|
<span class="navbar-toggler-icon"></span>
|
||||||
</button>
|
</button>
|
||||||
<div class="navbar-collapse collapse d-sm-inline-flex justify-content-between">
|
<div class="navbar-collapse collapse flex-grow-0">
|
||||||
<ul class="navbar-nav flex-grow-1">
|
<ul class="navbar-nav">@if (User.Identity.IsAuthenticated)
|
||||||
<li class="nav-item">
|
{
|
||||||
<a class="nav-link text-dark" asp-area="" asp-page="/Index">Home</a>
|
<span class="mr-sm-4 my-sm-0 my-2 bg-light text-secondary px-3 py-2 rounded"
|
||||||
</li>
|
style="font-weight: bold;">@User.Claims.First(c
|
||||||
<li class="nav-item">
|
=>
|
||||||
<a class="nav-link text-dark" asp-area="" asp-page="/Privacy">Privacy</a>
|
c.Type
|
||||||
</li>
|
==
|
||||||
|
"name").Value</span>
|
||||||
|
<a class="btn btn-secondary" role="button" asp-controller="Authentication"
|
||||||
|
asp-action="Logout">Logout</a>
|
||||||
|
}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
@if (User.Identity.IsAuthenticated)
|
|
||||||
{
|
|
||||||
<span class="navbar-text mr-1">@User.Claims.First(c => c.Type == "email").Value</span>
|
|
||||||
<a asp-controller="Authentication" asp-action="Logout">Logout</a>
|
|
||||||
}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
|||||||
396
CSharp/OidcSamples/OidcSamples.TaxApp/wwwroot/images/logo.svg
Normal file
396
CSharp/OidcSamples/OidcSamples.TaxApp/wwwroot/images/logo.svg
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 100 KiB |
Loading…
Reference in New Issue
Block a user