Added asp-area to Components, _Layout and _LoginPartial links (Header links are broken in Admin area #666 )

This commit is contained in:
Paul Oliveira 2016-05-26 17:19:43 -07:00
Родитель 149fbfa99a
Коммит ad2400e05b
10 изменённых файлов: 17 добавлений и 17 удалений

Просмотреть файл

@ -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>