Files
Orchard/src/Orchard.Web/Modules/Orchard.Search/Views/Search/Index.ascx
Nathan Heskew 784f9dfc09 Gave search a friendly URL (/search)
- and changed the property on the view model from Term to Query (sounds better and goes with the 'q' param)

--HG--
branch : dev
2010-06-04 08:35:24 -07:00

14 lines
602 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") %><%
} %>