-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
50a051f
commit 6322061
Showing
8 changed files
with
117 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
@{ | ||
Model.Metadata.Alternates.Clear(); | ||
Model.Metadata.Type = "Pager_Links"; | ||
} | ||
|
||
<nav aria-label="@T["Listing pages"]"> | ||
@await DisplayAsync(Model) | ||
</nav> |
13 changes: 13 additions & 0 deletions
13
src/OrchardCore.Themes/TheTheme/Views/Pager_CurrentPage.cshtml
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,13 @@ | ||
@{ | ||
Model.Metadata.Alternates.Clear(); | ||
Model.Metadata.Type = "Pager_Link"; | ||
var parentTag = Model.Tag as TagBuilder; | ||
|
||
if (parentTag != null) | ||
{ | ||
parentTag.AddCssClass("active"); | ||
parentTag.MergeAttribute("aria-current", "page"); | ||
} | ||
} | ||
|
||
@await DisplayAsync(Model) |
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,18 @@ | ||
@using Microsoft.AspNetCore.Html | ||
|
||
@{ | ||
Model.Metadata.Alternates.Clear(); | ||
Model.Metadata.Type = "Pager_Link"; | ||
var value = new HtmlContentBuilder(); | ||
value.AppendHtml("<i class=\"fa-solid fa-angles-left\"></i>"); | ||
Model.Value = value; | ||
|
||
var parentTag = Model.Tag as TagBuilder; | ||
|
||
if (parentTag != null) | ||
{ | ||
parentTag.MergeAttribute("title", T["Go to first page."].Value); | ||
} | ||
} | ||
|
||
@await DisplayAsync(Model) |
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,11 @@ | ||
@using Microsoft.AspNetCore.Html | ||
|
||
@{ | ||
Model.Metadata.Alternates.Clear(); | ||
Model.Metadata.Type = "Pager_Link"; | ||
var value = new HtmlContentBuilder(); | ||
value.AppendHtml("<i class=\"fa-solid fa-ellipsis\"></i>"); | ||
Model.Value = value; | ||
} | ||
|
||
@await DisplayAsync(Model) |
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,18 @@ | ||
@using Microsoft.AspNetCore.Html | ||
|
||
@{ | ||
Model.Metadata.Alternates.Clear(); | ||
Model.Metadata.Type = "Pager_Link"; | ||
var value = new HtmlContentBuilder(); | ||
value.AppendHtml("<i class=\"fa-solid fa-angles-right\"></i>"); | ||
Model.Value = value; | ||
|
||
var parentTag = Model.Tag as TagBuilder; | ||
|
||
if (parentTag != null) | ||
{ | ||
parentTag.MergeAttribute("title", T["Go to last page."].Value); | ||
} | ||
} | ||
|
||
@await DisplayAsync(Model) |
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,13 @@ | ||
@{ | ||
Model.Metadata.Alternates.Clear(); | ||
Model.Metadata.Type = "ActionLink"; | ||
Model.Classes.Add("page-link"); | ||
var parentTag = Model.Tag as TagBuilder; | ||
|
||
if (parentTag != null) | ||
{ | ||
parentTag.AddCssClass("page-item"); | ||
} | ||
} | ||
|
||
@await DisplayAsync(Model) |
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,18 @@ | ||
@using Microsoft.AspNetCore.Html | ||
|
||
@{ | ||
Model.Metadata.Alternates.Clear(); | ||
Model.Metadata.Type = "Pager_Link"; | ||
var value = new HtmlContentBuilder(); | ||
value.AppendHtml("<i class=\"fa-solid fa-angle-right\"></i>"); | ||
Model.Value = value; | ||
|
||
var parentTag = Model.Tag as TagBuilder; | ||
|
||
if (parentTag != null) | ||
{ | ||
parentTag.MergeAttribute("title", T["Go to next page."].Value); | ||
} | ||
} | ||
|
||
@await DisplayAsync(Model) |
18 changes: 18 additions & 0 deletions
18
src/OrchardCore.Themes/TheTheme/Views/Pager_Previous.cshtml
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,18 @@ | ||
@using Microsoft.AspNetCore.Html | ||
|
||
@{ | ||
Model.Metadata.Alternates.Clear(); | ||
Model.Metadata.Type = "Pager_Link"; | ||
var value = new HtmlContentBuilder(); | ||
value.AppendHtml("<i class=\"fa-solid fa-angle-left\"></i>"); | ||
Model.Value = value; | ||
|
||
var parentTag = Model.Tag as TagBuilder; | ||
|
||
if (parentTag != null) | ||
{ | ||
parentTag.MergeAttribute("title", T["Go to previous page."].Value); | ||
} | ||
} | ||
|
||
@await DisplayAsync(Model) |