-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update GridMvc package version 5.0.0-preview-2
- Loading branch information
1 parent
7b15765
commit 8fe08f6
Showing
6 changed files
with
46 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
using System.Reflection; | ||
using System.Runtime.CompilerServices; | ||
using System.Runtime.InteropServices; | ||
|
||
// General Information about an assembly is controlled through the following | ||
// set of attributes. Change these attribute values to modify the information | ||
// associated with an assembly. | ||
|
||
[assembly: AssemblyCopyright("")] | ||
[assembly: AssemblyTrademark("")] | ||
[assembly: AssemblyCulture("")] | ||
|
||
// Setting ComVisible to false makes the types in this assembly not visible | ||
// to COM components. If you need to access a type in this assembly from | ||
// COM, set the ComVisible attribute to true on that type. | ||
|
||
[assembly: ComVisible(false)] | ||
|
||
// The following GUID is for the ID of the typelib if this project is exposed to COM | ||
|
||
[assembly: Guid("7d38c093-51ea-4869-8044-0a85eda1bb6f")] | ||
|
||
// Version information for an assembly consists of the following four values: | ||
// | ||
// Major Version | ||
// Minor Version | ||
// Build Number | ||
// Revision | ||
// | ||
// You can specify all the values or you can default the Build and Revision Numbers | ||
// by using the '*' as shown below: | ||
// [assembly: AssemblyVersion("1.0.*")] | ||
|
||
[assembly: InternalsVisibleTo("GridMvc")] | ||
[assembly: InternalsVisibleTo("GridMvc.Tests")] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,18 +9,18 @@ | |
@if (Model.CurrentPage > 1) | ||
{ | ||
<li class="page-item"> | ||
<a class="page-link grid-page-link" href="@[email protected](Model.CurrentPage - 1)">«</a> | ||
<a class="page-link grid-page-link" href="@Context.Request.[email protected].[email protected](Model.CurrentPage - 1)">«</a> | ||
</li> | ||
} | ||
|
||
@if (Model.StartDisplayedPage > 1) | ||
{ | ||
<li class="page-item"> | ||
<a class="page-link grid-page-link" href="@[email protected](1)">1</a> | ||
<a class="page-link grid-page-link" href="@Context.Request.[email protected].[email protected](1)">1</a> | ||
</li> | ||
if (Model.StartDisplayedPage > 2) | ||
{ | ||
<li class="page-item"><a class="page-link grid-page-link" href="@[email protected](Model.StartDisplayedPage - 1)">...</a></li> | ||
<li class="page-item"><a class="page-link grid-page-link" href="@Context.Request.[email protected].[email protected](Model.StartDisplayedPage - 1)">...</a></li> | ||
} | ||
} | ||
@for (int i = Model.StartDisplayedPage; i <= Model.EndDisplayedPage; i++) | ||
|
@@ -31,20 +31,20 @@ | |
} | ||
else | ||
{ | ||
<li class="page-item"><a class="page-link grid-page-link" href="@[email protected](i)">@i</a></li> | ||
<li class="page-item"><a class="page-link grid-page-link" href="@Context.Request.[email protected].[email protected](i)">@i</a></li> | ||
} | ||
} | ||
@if (Model.EndDisplayedPage < Model.PageCount) | ||
{ | ||
if (Model.EndDisplayedPage < Model.PageCount - 1) | ||
{ | ||
<li class="page-item"><a class="page-link grid-page-link" href="@[email protected](Model.EndDisplayedPage + 1)">...</a></li> | ||
<li class="page-item"><a class="page-link grid-page-link" href="@Context.Request.[email protected].[email protected](Model.EndDisplayedPage + 1)">...</a></li> | ||
} | ||
<li><a class="page-link grid-page-link" href="@[email protected](Model.PageCount)">@Model.PageCount</a></li> | ||
<li><a class="page-link grid-page-link" href="@Context.Request.[email protected].[email protected](Model.PageCount)">@Model.PageCount</a></li> | ||
} | ||
@if (Model.CurrentPage < Model.PageCount) | ||
{ | ||
<li class="page-item"><a class="page-link grid-page-link" href="@[email protected](Model.CurrentPage + 1)">»</a></li> | ||
<li class="page-item"><a class="page-link grid-page-link" href="@Context.Request.[email protected].[email protected](Model.CurrentPage + 1)">»</a></li> | ||
} | ||
</ul> | ||
</nav> |