зеркало из https://github.com/aspnet/MusicStore.git
Added asp-area to Components, _Layout and _LoginPartial links (Header links are broken in Admin area #666 )
This commit is contained in:
Родитель
149fbfa99a
Коммит
ad2400e05b
|
@ -5,6 +5,6 @@
|
|||
<li>
|
||||
<br />
|
||||
<small><i><label title="New Arrivals!" style="color:red">New Arrivals!</label></i></small>
|
||||
<i><a id="NewArrivalsPanel" asp-controller="Store" asp-action="Details" asp-route-id="@Model.AlbumId">@Model.Title</a></i>
|
||||
<i><a id="NewArrivalsPanel" asp-area="" asp-controller="Store" asp-action="Details" asp-route-id="@Model.AlbumId">@Model.Title</a></i>
|
||||
</li>
|
||||
}
|
|
@ -1,7 +1,7 @@
|
|||
@if (ViewBag.CartCount > 0)
|
||||
{
|
||||
<li>
|
||||
<a asp-controller="ShoppingCart" asp-action="Index" title="@ViewBag.CartSummary">
|
||||
<a asp-area="" asp-controller="ShoppingCart" asp-action="Index" title="@ViewBag.CartSummary">
|
||||
<span class="glyphicon glyphicon-shopping-cart"></span>
|
||||
<span id="cart-status">
|
||||
@ViewBag.CartCount
|
||||
|
|
|
@ -1,17 +1,17 @@
|
|||
@model IEnumerable<string>
|
||||
|
||||
<li class="dropdown">
|
||||
<a asp-controller="Store" asp-action="Index" class="dropdown-toggle" data-toggle="dropdown">Store <b class="caret"></b></a>
|
||||
<a asp-area="" asp-controller="Store" asp-action="Index" class="dropdown-toggle" data-toggle="dropdown">Store <b class="caret"></b></a>
|
||||
<ul class="dropdown-menu">
|
||||
@foreach (var genreName in Model)
|
||||
{
|
||||
<li>
|
||||
<a asp-controller="Store" asp-action="Browse" asp-route-Genre="@genreName">@genreName</a>
|
||||
<a asp-area="" asp-controller="Store" asp-action="Browse" asp-route-Genre="@genreName">@genreName</a>
|
||||
</li>
|
||||
}
|
||||
<li class="divider"></li>
|
||||
<li>
|
||||
<a asp-controller="Store" asp-action="Index">More...</a>
|
||||
<a asp-area="" asp-controller="Store" asp-action="Index">More...</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
|
@ -33,11 +33,11 @@
|
|||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
<a asp-controller="Home" asp-action="Index" class="navbar-brand">@AppSettings.Value.SiteTitle</a>
|
||||
<a asp-area="" asp-controller="Home" asp-action="Index" class="navbar-brand">@AppSettings.Value.SiteTitle</a>
|
||||
</div>
|
||||
<div class="navbar-collapse collapse">
|
||||
<ul class="nav navbar-nav">
|
||||
<li><a asp-controller="Home" asp-action="Index">Home</a></li>
|
||||
<li><a asp-area="" asp-controller="Home" asp-action="Index">Home</a></li>
|
||||
@await Component.InvokeAsync("GenreMenu")
|
||||
@await Component.InvokeAsync("CartSummary")
|
||||
</ul>
|
||||
|
|
|
@ -6,10 +6,10 @@
|
|||
|
||||
@if (SignInManager.IsSignedIn(User))
|
||||
{
|
||||
<form asp-controller="Account" asp-action="LogOff" method="post" id="logoutForm" class="navbar-right">
|
||||
<form asp-area="" asp-controller="Account" asp-action="LogOff" method="post" id="logoutForm" class="navbar-right">
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
<li>
|
||||
<a asp-controller="Manage" asp-action="Index" title="Manage">Hello @UserManager.GetUserName(User)!</a>
|
||||
<a asp-area="" asp-controller="Manage" asp-action="Index" title="Manage">Hello @UserManager.GetUserName(User)!</a>
|
||||
</li>
|
||||
<li><a href="javascript:document.getElementById('logoutForm').submit()">Log off</a></li>
|
||||
</ul>
|
||||
|
|
|
@ -5,6 +5,6 @@
|
|||
<li>
|
||||
<br />
|
||||
<small><i><label title="New Arrivals!" style="color:red">New Arrivals!</label></i></small>
|
||||
<i><a id="NewArrivalsPanel" asp-controller="Store" asp-action="Details" asp-route-id="@Model.AlbumId">@Model.Title</a></i>
|
||||
<i><a id="NewArrivalsPanel" asp-area="" asp-controller="Store" asp-action="Details" asp-route-id="@Model.AlbumId">@Model.Title</a></i>
|
||||
</li>
|
||||
}
|
|
@ -1,7 +1,7 @@
|
|||
@if (ViewBag.CartCount > 0)
|
||||
{
|
||||
<li>
|
||||
<a asp-controller="ShoppingCart" asp-action="Index" title="@ViewBag.CartSummary">
|
||||
<a asp-area="" asp-controller="ShoppingCart" asp-action="Index" title="@ViewBag.CartSummary">
|
||||
<span class="glyphicon glyphicon-shopping-cart"></span>
|
||||
<span id="cart-status">
|
||||
@ViewBag.CartCount
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
@model IEnumerable<string>
|
||||
|
||||
<li class="dropdown">
|
||||
<a asp-controller="Store" asp-action="Index" class="dropdown-toggle" data-toggle="dropdown">Store <b class="caret"></b></a>
|
||||
<a asp-area="" asp-controller="Store" asp-action="Index" class="dropdown-toggle" data-toggle="dropdown">Store <b class="caret"></b></a>
|
||||
<ul class="dropdown-menu">
|
||||
@foreach (var genreName in Model)
|
||||
{
|
||||
<li>
|
||||
<a asp-controller="Store" asp-action="Browse" asp-route-Genre="@genreName">@genreName</a>
|
||||
<a asp-area="" asp-controller="Store" asp-action="Browse" asp-route-Genre="@genreName">@genreName</a>
|
||||
</li>
|
||||
}
|
||||
<li class="divider"></li>
|
||||
|
|
|
@ -33,11 +33,11 @@
|
|||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
<a asp-controller="Home" asp-action="Index" class="navbar-brand">@AppSettings.Value.SiteTitle</a>
|
||||
<a asp-area="" asp-controller="Home" asp-action="Index" class="navbar-brand">@AppSettings.Value.SiteTitle</a>
|
||||
</div>
|
||||
<div class="navbar-collapse collapse">
|
||||
<ul class="nav navbar-nav">
|
||||
<li><a asp-controller="Home" asp-action="Index">Home</a></li>
|
||||
<li><a asp-area="" asp-controller="Home" asp-action="Index">Home</a></li>
|
||||
@await Component.InvokeAsync("GenreMenu")
|
||||
@await Component.InvokeAsync("CartSummary")
|
||||
</ul>
|
||||
|
|
|
@ -6,10 +6,10 @@
|
|||
|
||||
@if (SignInManager.IsSignedIn(User))
|
||||
{
|
||||
<form asp-controller="Account" asp-action="LogOff" method="post" id="logoutForm" class="navbar-right">
|
||||
<form asp-area="" asp-controller="Account" asp-action="LogOff" method="post" id="logoutForm" class="navbar-right">
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
<li>
|
||||
<a asp-controller="Manage" asp-action="Index" title="Manage">Hello @UserManager.GetUserName(User)!</a>
|
||||
<a asp-area="" asp-controller="Manage" asp-action="Index" title="Manage">Hello @UserManager.GetUserName(User)!</a>
|
||||
</li>
|
||||
<li><a href="javascript:document.getElementById('logoutForm').submit()">Log off</a></li>
|
||||
</ul>
|
||||
|
|
Загрузка…
Ссылка в новой задаче