Admin page (#324)
* Updates based on documentation * Getting the build passing * Getting app functioning * A few cleanups to confirm it's working as expected * Fixing functional tests * Updating dockerfile for 3.0 * Functional Tests now run sequentially * Updating to latest version of moq * Adding migration for post 3.0 upgrades * Removing commented out lines * Moving address and catalogitemordered configuration in to classes that own them * Adding admin user * Adding admin catalog screen - will also only display menu option if user is logged in as an admin * WIP - squash this * Allow user to edit a catalog item * Adding entry for new service * Invalidating cache after catalog item update - also a little bit of cleanup * Fixing bad merge * Removing Picture Uri and making Id readonly * Adjusting style in menu dropdown so all options are shown * Creating Cache helpers with unit tests
This commit is contained in:
committed by
Steve Smith
parent
539d8c689d
commit
f3f74a342e
@@ -8,6 +8,13 @@
|
||||
<img class="esh-identity-image" src="~/images/arrow-down.png">
|
||||
</section>
|
||||
<section class="esh-identity-drop">
|
||||
@if (User.IsInRole("Administrators"))
|
||||
{
|
||||
<a class="esh-identity-item"
|
||||
asp-page="/Admin/Index">
|
||||
<div class="esh-identity-name esh-identity-name--upper">Admin</div>
|
||||
</a>
|
||||
}
|
||||
<a class="esh-identity-item"
|
||||
asp-controller="Order"
|
||||
asp-action="MyOrders">
|
||||
@@ -18,8 +25,7 @@
|
||||
asp-action="MyAccount">
|
||||
<div class="esh-identity-name esh-identity-name--upper">My account</div>
|
||||
</a>
|
||||
<a class="esh-identity-item"
|
||||
href="javascript:document.getElementById('logoutForm').submit()">
|
||||
<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>
|
||||
|
||||
Reference in New Issue
Block a user