From dbdc3ccc6a4964687b8b44d00f6d251b9b4da1bb Mon Sep 17 00:00:00 2001 From: Edi Wang Date: Fri, 3 May 2024 16:07:28 +0800 Subject: [PATCH] remove DisplayItemSliceAndTotal --- src/Moonglade.Web/PagedList/HtmlHelper.cs | 6 ------ src/Moonglade.Web/PagedList/PagedListRenderOptions.cs | 8 -------- 2 files changed, 14 deletions(-) diff --git a/src/Moonglade.Web/PagedList/HtmlHelper.cs b/src/Moonglade.Web/PagedList/HtmlHelper.cs index 11e434bbb..72dbf1969 100644 --- a/src/Moonglade.Web/PagedList/HtmlHelper.cs +++ b/src/Moonglade.Web/PagedList/HtmlHelper.cs @@ -244,12 +244,6 @@ public string PagedListPager(IPagedList pagedList, Func generatePag listItemLinks.Add(PageCountAndLocationText(list, options)); } - //text - if (options.DisplayItemSliceAndTotal) - { - listItemLinks.Add(ItemSliceAndTotalText(list, options)); - } - //page listItemLinks.AddRange(Enumerable.Range(firstPageToDisplay, pageNumbersToDisplay).Select(i => Page(i, list, generatePageUrl, options))); diff --git a/src/Moonglade.Web/PagedList/PagedListRenderOptions.cs b/src/Moonglade.Web/PagedList/PagedListRenderOptions.cs index 58b27cc12..323f23e5b 100644 --- a/src/Moonglade.Web/PagedList/PagedListRenderOptions.cs +++ b/src/Moonglade.Web/PagedList/PagedListRenderOptions.cs @@ -63,14 +63,6 @@ public PagedListRenderOptions() /// public bool DisplayPageCountAndCurrentLocation { get; set; } - /// - /// When true, shows the one-based index of the first and last items on the page, and the total number of items in the list. - /// - /// - /// "Showing items 75 through 100 of 183." - /// - public bool DisplayItemSliceAndTotal { get; set; } - /// /// The maximum number of page numbers to display. Null displays all page numbers. ///