From 62b9fa575a9269a6ea66cbfc6a7787b1742606dc Mon Sep 17 00:00:00 2001 From: tmont Date: Mon, 7 Mar 2011 21:36:21 +0000 Subject: [PATCH] fixed paging issues on mono --- Src/VideoGameQuotes.Web/Global.asax.cs | 4 ++-- Src/VideoGameQuotes.Web/Views/Quote/Best.aspx | 2 +- Src/VideoGameQuotes.Web/Views/Quote/Recent.aspx | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Src/VideoGameQuotes.Web/Global.asax.cs b/Src/VideoGameQuotes.Web/Global.asax.cs index ab8afad..0f27c04 100644 --- a/Src/VideoGameQuotes.Web/Global.asax.cs +++ b/Src/VideoGameQuotes.Web/Global.asax.cs @@ -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" }); diff --git a/Src/VideoGameQuotes.Web/Views/Quote/Best.aspx b/Src/VideoGameQuotes.Web/Views/Quote/Best.aspx index 01cfd4f..2488282 100644 --- a/Src/VideoGameQuotes.Web/Views/Quote/Best.aspx +++ b/Src/VideoGameQuotes.Web/Views/Quote/Best.aspx @@ -4,7 +4,7 @@ Best - <% 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) { diff --git a/Src/VideoGameQuotes.Web/Views/Quote/Recent.aspx b/Src/VideoGameQuotes.Web/Views/Quote/Recent.aspx index e955c06..0baf966 100644 --- a/Src/VideoGameQuotes.Web/Views/Quote/Recent.aspx +++ b/Src/VideoGameQuotes.Web/Views/Quote/Recent.aspx @@ -3,7 +3,7 @@ <%@ Import Namespace="VideoGameQuotes.Web.Models" %> Recently Submitted Quotes - <% 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) {