mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00

* Waiting on some pieces of the index manager/provider are being added and/or reworked then we'll get it all hooked up. --HG-- branch : dev
11 lines
583 B
Plaintext
11 lines
583 B
Plaintext
<%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl<Orchard.Search.ViewModels.SearchViewModel>" %>
|
|
<%@ Import Namespace="Orchard.Mvc.Html" %><%
|
|
Html.RegisterStyle("search.css"); %>
|
|
<h1><%=Html.TitleForPage(T("Search"))%></h1><%
|
|
Html.Zone("search");
|
|
if (!string.IsNullOrWhiteSpace(Model.Query)) { %>
|
|
<p class="search-summary"><%=T("<em>{0}</em> results", Model.Results.Count()) %></p><%
|
|
}
|
|
if (Model.Results.Count() > 0) { %>
|
|
<%=Html.UnorderedList(Model.Results, (r, i) => Html.DisplayForItem(r.Content).ToHtmlString(), "search-results contentItems") %><%
|
|
} %> |