Advertisement
Guest User

Untitled

a guest
Sep 17th, 2015
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. @model YOURNAMESPACE.ViewModels.Common.Components.Search.SearchResultsViewModel
  2.  
  3. <div class="container-fluid width-90">
  4. <div class="row">
  5. <h1>Search results for &ldquo;@Model.SearchTerm&rdquo;</h1>
  6.  
  7. @if (Model.SearchResults != null && Model.SearchResults.Any())
  8. {
  9. foreach (var result in Model.SearchResults)
  10. {
  11. <div>
  12. <a href="@result.PageLinkUrl" title="@result.Title">
  13. <h2 class="entry-title">@Html.Raw(result.Title)</h2>
  14. </a>
  15. <div class="entry-summary">
  16. @Html.Raw(result.Content)
  17.  
  18. <a href="@result.PageLinkUrl" title="@result.Title">...Continue reading<span class="meta-nav">&rarr;</span></a>
  19. </div>
  20. </div>
  21. }
  22. }
  23. else
  24. {
  25. <p>No results matched the search criteria &ldquo;@Model.SearchTerm&rdquo;</p>
  26. }
  27.  
  28. <div class="row">
  29. <div class="pager">
  30. @Html.Partial(Model.PagingViewPath, Model)
  31. </div>
  32. </div>
  33. </div>
  34. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement