mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Updated the message for when there are no results for a search query
--HG-- branch : dev
This commit is contained in:
@@ -3,7 +3,10 @@
|
||||
Html.RegisterStyle("search.css"); %>
|
||||
<h1><%=Html.TitleForPage(T("Search").Text)%></h1><%
|
||||
Html.Zone("search");
|
||||
if (!string.IsNullOrWhiteSpace(Model.Query)) { %>
|
||||
if (Model.Count == 0) { %>
|
||||
<p class="search-summary"><%=T("<em>zero</em> results")%></p><%
|
||||
}
|
||||
else if (!string.IsNullOrWhiteSpace(Model.Query)) { %>
|
||||
<p class="search-summary"><%=T("<em>{0} - {1}</em> of <em>{2}</em> results", (Model.Page - 1) * Model.PageSize + 1, Model.Page * Model.PageSize > Model.Count ? Model.Count : Model.Page * Model.PageSize, Model.Count)%></p><%
|
||||
}
|
||||
if (Model.ResultsPage.Count() > 0) { %>
|
||||
|
Reference in New Issue
Block a user