Maintaining filter after postback, and fixing pager text with no results

--HG--
branch : dev
extra : transplant_source : %9D%83U%F6%AE%DCpT%D1%10%60%E3%5D%3D%89n%C2%60Qa
This commit is contained in:
Sebastien Ros
2011-01-17 07:22:49 -08:00
parent 4d4d29e4eb
commit f4fd2d3ba1
2 changed files with 6 additions and 2 deletions

View File

@@ -133,7 +133,7 @@ namespace Orchard.Users.Controllers {
break;
}
return RedirectToAction("Index");
return Index(viewModel.Options, new PagerParameters());
}
public ActionResult Create() {

View File

@@ -26,7 +26,11 @@
Model.Classes.Add("group");
var tag = Tag(Model, "ul");
}
@if (Model.TotalItemCount > 1) {
<span class="page-results">@T("Showing items {0} - {1} of {2}", (Model.Page-1)*(int)Model.PageSize + 1, Math.Min(Model.TotalItemCount, (Model.Page)*(int)Model.PageSize), Model.TotalItemCount)</span>
}
@if (totalPageCount > 1) {
@tag.StartElement
// first