fixed paging issues on mono
This commit is contained in:
parent
1ab1b0f074
commit
62b9fa575a
@ -68,8 +68,8 @@ namespace VideoGameQuotes.Web {
|
||||
|
||||
routes.MapSmartRoute("home", "{action}", new { controller = "Home", action = "Index" }, new { action = "about|contact|login|logout" });
|
||||
|
||||
routes.MapSmartRoute("paged-default", "{action}", new { controller = "Quote", page = 1 }, new { action = "best|recent" });
|
||||
routes.MapSmartRoute("paged", "{action}/{page}", new { controller = "Quote", page = 1 }, new { action = "best|recent", page = @"\d+" });
|
||||
routes.MapSmartRoute("paged", "{action}/{page}", new { controller = "Quote", page = 1 }, new { action = "best|recent" });
|
||||
routes.MapSmartRoute("paged-default", "{action}", new { controller = "Quote", page = 1 }, new { action = "best|recent", page = @"\d+" });
|
||||
|
||||
routes.MapSmartRoute("browse", "browse/{*qualifiers}", new { controller = "Quote", action = "Browse" });
|
||||
routes.MapSmartRoute("search", "search/{*searchQuery}", new { controller = "Quote", action = "Search" });
|
||||
|
@ -4,7 +4,7 @@
|
||||
<asp:Content runat="server" ID="Title" ContentPlaceHolderID="TitleContent">Best</asp:Content>
|
||||
<asp:Content runat="server" ID="Main" ContentPlaceHolderID="MainContent">
|
||||
|
||||
<% Html.RenderPartial("PagingMenu", new PagingMenuModel(Model) { Action = "Best", Controller = "Quote" }); %>
|
||||
<% Html.RenderPartial("PagingMenu", new PagingMenuModel(Model) { Action = "best", Controller = "Quote" }); %>
|
||||
|
||||
<%
|
||||
foreach (var quote in Model.Records) {
|
||||
|
@ -3,7 +3,7 @@
|
||||
<%@ Import Namespace="VideoGameQuotes.Web.Models" %>
|
||||
<asp:Content runat="server" ID="Title" ContentPlaceHolderID="TitleContent">Recently Submitted Quotes</asp:Content>
|
||||
<asp:Content runat="server" ID="Main" ContentPlaceHolderID="MainContent">
|
||||
<% Html.RenderPartial("PagingMenu", new PagingMenuModel(Model) { Action = "Recent", Controller = "Quote" }); %>
|
||||
<% Html.RenderPartial("PagingMenu", new PagingMenuModel(Model) { Action = "recent", Controller = "Quote" }); %>
|
||||
|
||||
<%
|
||||
foreach (var quote in Model.Records) {
|
||||
|
Loading…
Reference in New Issue
Block a user