Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @model YOURNAMESPACE.ViewModels.Common.Components.Search.SearchResultsViewModel
- <div class="container-fluid width-90">
- <div class="row">
- <h1>Search results for “@Model.SearchTerm”</h1>
- @if (Model.SearchResults != null && Model.SearchResults.Any())
- {
- foreach (var result in Model.SearchResults)
- {
- <div>
- <a href="@result.PageLinkUrl" title="@result.Title">
- <h2 class="entry-title">@Html.Raw(result.Title)</h2>
- </a>
- <div class="entry-summary">
- @Html.Raw(result.Content)
- <a href="@result.PageLinkUrl" title="@result.Title">...Continue reading<span class="meta-nav">→</span></a>
- </div>
- </div>
- }
- }
- else
- {
- <p>No results matched the search criteria “@Model.SearchTerm”</p>
- }
- <div class="row">
- <div class="pager">
- @Html.Partial(Model.PagingViewPath, Model)
- </div>
- </div>
- </div>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement