Skip to content

Commit 18513eb

Browse files
committed
Something seems to have changed...?
1 parent f607e9e commit 18513eb

File tree

8 files changed

+130
-130
lines changed

8 files changed

+130
-130
lines changed

.gitignore

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ _ReSharper.*
77
*.suo
88
*.cache
99
nuget/lib/net40
10-
/packages
11-
/*.user
12-
PublishProfiles
10+
/packages
11+
/*.user
12+
PublishProfiles

CHANGELOG

+69-69
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,70 @@
1-
2.1.0 (2014-01-22)
2-
- Made Pager and OptionsBuilder Model-aware. This allows for future strongly typed
3-
extensions with lambda's.
4-
- Added AddRouteValueFor<TModel>(expression) method to fluent options interface:
5-
Pager(...).Options(o => o.AddRouteValueFor(m => m.SearchQuery))
6-
See also: https://github.com/martijnboland/MvcPaging/issues/32
7-
8-
2.0.6 (2013-12-12)
9-
- Added Pager properties (PageSize, CurrentPage, PageCount, TotalItemCount) to
10-
PaginationModel to be used in custom display templates.
11-
See also: https://github.com/martijnboland/MvcPaging/issues/28
12-
- The pages spacer (...) is wrapped in a span.
13-
- Fixed issue that occurred with routedata values when array parameters were
14-
non-strings. See https://github.com/martijnbola
15-
16-
2.0.5 (2013-10-17)
17-
- Added AJAX support in DisplayTemplate for Twitter Bootstrap
18-
(https://github.com/martijnboland/MvcPaging/pull/25)
19-
- Introduced spacer link ( [...] between groups of pages) and set IsActive to false
20-
for these links. (https://github.com/martijnboland/MvcPaging/issues/23)
21-
- Added demo page with Bootstrap 3
22-
(https://github.com/martijnboland/MvcPaging/issues/27)
23-
24-
2.0.4 (2013-05-20)
25-
- Support for covariance in IPagedList by inheriting from IEnumerable<T> instead of
26-
IList<T> (https://github.com/martijnboland/MvcPaging/pull/17).
27-
- Small bugfix in Demo project (https://github.com/martijnboland/MvcPaging/pull/18).
28-
- Support for array parameters (https://github.com/martijnboland/MvcPaging/issues/22).
29-
30-
2.0.3 (2012-06-22)
31-
- Fixed issue where setting the Action option would be overridden when also setting
32-
the RouteValues option.
33-
- Added Defaults to PagerOptions class.
34-
- Added PageRouteValueKey option to set the name of the page parameter.
35-
36-
2.0.2 (2012-04-27)
37-
- Added AjaxOptions property to PaginationModel, so the DisplayTemplate option can be
38-
used in Ajax scenarios. Thanks to Raffaele.
39-
- Added AlwaysAddFirstPageNumber configuration option to force the page number to be
40-
set for page 1.
41-
This is for scenarios where omitting the page parameter not automatically defaults
42-
to page 1.
43-
44-
2.0.0 (2012-04-20)
45-
- Refactored and simplified Html.Pager helper. The number of overloads is
46-
drastically reduced. Optional parameters are added via a Fluent interface.
47-
- Introduced PaginationModel and optional DisplayTemplate for more display
48-
flexibility (https://github.com/martijnboland/MvcPaging/pull/6), thanks Rajeesh C V!
49-
- Added MaxNrOfPages option (https://github.com/martijnboland/MvcPaging/pull/4)
50-
- BREAKING CHANGE: Html.Pager overloads with actionName and routeValues have been
51-
removed. Use the Options method:
52-
Html.Pager(pageSize, pageNumber, totalItemCount).Options(o => o.Action("ActionName"))
53-
- BREAKING CHANGE: the Ajax.Pager helper is removed. For AJAX scenarios use the
54-
Html.Pager(pageSize, pageNumber, totalItemCount, ajaxOptions) overload
55-
56-
1.0.3 (2012-03-22)
57-
- Added non-generic IPagedList interface for convenience.
58-
59-
1.0.2 (2011-12-07)
60-
- Added ItemStart and ItemEnd properties to IPagedList
61-
(Displaying items {ItemStart} - {ItemEnd}).
62-
- Non-canonical url's for page 1 (https://github.com/martijnboland/MvcPaging/issues/2).
63-
64-
1.0.1 (2011-08-15)
65-
- Added fix for incorrect URL generation in some scenario's where controller
66-
and/or action are missing in the route values dictionary.
67-
Thanks to John M. Holliday for the fix.
68-
69-
1.0.0 (2011-05-12)
1+
2.1.0 (2014-01-22)
2+
- Made Pager and OptionsBuilder Model-aware. This allows for future strongly typed
3+
extensions with lambda's.
4+
- Added AddRouteValueFor<TModel>(expression) method to fluent options interface:
5+
Pager(...).Options(o => o.AddRouteValueFor(m => m.SearchQuery))
6+
See also: https://github.com/martijnboland/MvcPaging/issues/32
7+
8+
2.0.6 (2013-12-12)
9+
- Added Pager properties (PageSize, CurrentPage, PageCount, TotalItemCount) to
10+
PaginationModel to be used in custom display templates.
11+
See also: https://github.com/martijnboland/MvcPaging/issues/28
12+
- The pages spacer (...) is wrapped in a span.
13+
- Fixed issue that occurred with routedata values when array parameters were
14+
non-strings. See https://github.com/martijnbola
15+
16+
2.0.5 (2013-10-17)
17+
- Added AJAX support in DisplayTemplate for Twitter Bootstrap
18+
(https://github.com/martijnboland/MvcPaging/pull/25)
19+
- Introduced spacer link ( [...] between groups of pages) and set IsActive to false
20+
for these links. (https://github.com/martijnboland/MvcPaging/issues/23)
21+
- Added demo page with Bootstrap 3
22+
(https://github.com/martijnboland/MvcPaging/issues/27)
23+
24+
2.0.4 (2013-05-20)
25+
- Support for covariance in IPagedList by inheriting from IEnumerable<T> instead of
26+
IList<T> (https://github.com/martijnboland/MvcPaging/pull/17).
27+
- Small bugfix in Demo project (https://github.com/martijnboland/MvcPaging/pull/18).
28+
- Support for array parameters (https://github.com/martijnboland/MvcPaging/issues/22).
29+
30+
2.0.3 (2012-06-22)
31+
- Fixed issue where setting the Action option would be overridden when also setting
32+
the RouteValues option.
33+
- Added Defaults to PagerOptions class.
34+
- Added PageRouteValueKey option to set the name of the page parameter.
35+
36+
2.0.2 (2012-04-27)
37+
- Added AjaxOptions property to PaginationModel, so the DisplayTemplate option can be
38+
used in Ajax scenarios. Thanks to Raffaele.
39+
- Added AlwaysAddFirstPageNumber configuration option to force the page number to be
40+
set for page 1.
41+
This is for scenarios where omitting the page parameter not automatically defaults
42+
to page 1.
43+
44+
2.0.0 (2012-04-20)
45+
- Refactored and simplified Html.Pager helper. The number of overloads is
46+
drastically reduced. Optional parameters are added via a Fluent interface.
47+
- Introduced PaginationModel and optional DisplayTemplate for more display
48+
flexibility (https://github.com/martijnboland/MvcPaging/pull/6), thanks Rajeesh C V!
49+
- Added MaxNrOfPages option (https://github.com/martijnboland/MvcPaging/pull/4)
50+
- BREAKING CHANGE: Html.Pager overloads with actionName and routeValues have been
51+
removed. Use the Options method:
52+
Html.Pager(pageSize, pageNumber, totalItemCount).Options(o => o.Action("ActionName"))
53+
- BREAKING CHANGE: the Ajax.Pager helper is removed. For AJAX scenarios use the
54+
Html.Pager(pageSize, pageNumber, totalItemCount, ajaxOptions) overload
55+
56+
1.0.3 (2012-03-22)
57+
- Added non-generic IPagedList interface for convenience.
58+
59+
1.0.2 (2011-12-07)
60+
- Added ItemStart and ItemEnd properties to IPagedList
61+
(Displaying items {ItemStart} - {ItemEnd}).
62+
- Non-canonical url's for page 1 (https://github.com/martijnboland/MvcPaging/issues/2).
63+
64+
1.0.1 (2011-08-15)
65+
- Added fix for incorrect URL generation in some scenario's where controller
66+
and/or action are missing in the route values dictionary.
67+
Thanks to John M. Holliday for the fix.
68+
69+
1.0.0 (2011-05-12)
7070
- Initial release of Pager Helper and IPagedList<T> implementation.

Screenshot.png

-1 Bytes
Loading
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,61 @@
1-
@using MvcPaging.Demo.Models
2-
@model IPagedList<Product>
3-
<h2>Welcome to area 51</h2>
4-
<p>Don't like the area? @Html.ActionLink("Go back to the root area", "Index", "Home", new { area=String.Empty }, null)</p>
5-
<table class="grid">
6-
<thead>
7-
<tr>
8-
<th>Product name</th>
9-
<th>Category</th>
10-
</tr>
11-
</thead>
12-
<tbody>
13-
@foreach (var product in Model) {
14-
<tr>
15-
<td>@product.Name</td>
16-
<td>@product.Category</td>
17-
</tr>
18-
}
19-
</tbody>
20-
</table>
21-
<div class="pager">
22-
@Html.Pager(Model.PageSize, Model.PageNumber, Model.TotalItemCount)
23-
</div>
24-
25-
@{
26-
var sourceModel = new ViewSourceViewModel();
27-
sourceModel.RazorCode = @"
28-
@using MvcPaging.Demo.Models
29-
@model IPagedList<Product>
30-
<h2>Welcome to area 51</h2>
31-
<p>Don't like the area? @Html.ActionLink(""Go back to the root area"", ""Index"", ""Home"", new { area=String.Empty }, null)</p>
32-
<table class=""grid"">
33-
<thead>
34-
<tr>
35-
<th>Product name</th>
36-
<th>Category</th>
37-
</tr>
38-
</thead>
39-
<tbody>
40-
@foreach (var product in Model) {
41-
<tr>
42-
<td>@product.Name</td>
43-
<td>@product.Category</td>
44-
</tr>
45-
}
46-
</tbody>
47-
</table>
48-
<div class=""pager"">
49-
@Html.Pager(Model.PageSize, Model.PageNumber, Model.TotalItemCount)
50-
</div>
51-
";
52-
53-
sourceModel.ControllerCode = @"
1+
@using MvcPaging.Demo.Models
2+
@model IPagedList<Product>
3+
<h2>Welcome to area 51</h2>
4+
<p>Don't like the area? @Html.ActionLink("Go back to the root area", "Index", "Home", new { area=String.Empty }, null)</p>
5+
<table class="grid">
6+
<thead>
7+
<tr>
8+
<th>Product name</th>
9+
<th>Category</th>
10+
</tr>
11+
</thead>
12+
<tbody>
13+
@foreach (var product in Model) {
14+
<tr>
15+
<td>@product.Name</td>
16+
<td>@product.Category</td>
17+
</tr>
18+
}
19+
</tbody>
20+
</table>
21+
<div class="pager">
22+
@Html.Pager(Model.PageSize, Model.PageNumber, Model.TotalItemCount)
23+
</div>
24+
25+
@{
26+
var sourceModel = new ViewSourceViewModel();
27+
sourceModel.RazorCode = @"
28+
@using MvcPaging.Demo.Models
29+
@model IPagedList<Product>
30+
<h2>Welcome to area 51</h2>
31+
<p>Don't like the area? @Html.ActionLink(""Go back to the root area"", ""Index"", ""Home"", new { area=String.Empty }, null)</p>
32+
<table class=""grid"">
33+
<thead>
34+
<tr>
35+
<th>Product name</th>
36+
<th>Category</th>
37+
</tr>
38+
</thead>
39+
<tbody>
40+
@foreach (var product in Model) {
41+
<tr>
42+
<td>@product.Name</td>
43+
<td>@product.Category</td>
44+
</tr>
45+
}
46+
</tbody>
47+
</table>
48+
<div class=""pager"">
49+
@Html.Pager(Model.PageSize, Model.PageNumber, Model.TotalItemCount)
50+
</div>
51+
";
52+
53+
sourceModel.ControllerCode = @"
5454
public ActionResult Index(int? page)
5555
{
5656
int currentPageIndex = page.HasValue ? page.Value - 1 : 0;
5757
return View(this.allProducts.ToPagedList(currentPageIndex, defaultPageSize));
58-
}";
59-
}
60-
58+
}";
59+
}
60+
6161
@Html.Partial("ViewSource", sourceModel)

src/MvcPaging.Demo/Content/Css/Site.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -717,6 +717,6 @@ table.grid td
717717
text-decoration: none;
718718
}
719719

720-
.source {
721-
margin-top: 30px;
720+
.source {
721+
margin-top: 30px;
722722
}
-1 Bytes
Loading
-1 Bytes
Loading
-1 Bytes
Loading

0 commit comments

Comments
 (0)