2011-02-17 05:30:31 +00:00
|
|
|
<%@ Page Title="" Language="C#" Inherits="System.Web.Mvc.ViewPage<VideoGameQuotes.Web.Models.SearchModel>" MasterPageFile="~/Views/Shared/Site.Master" %>
|
|
|
|
<%@ Import Namespace="VideoGameQuotes.Web.Models" %>
|
|
|
|
<asp:Content runat="server" ID="Title" ContentPlaceHolderID="TitleContent">Search<%= !string.IsNullOrEmpty(Model.SearchQuery) ? " - " + Model.SearchQuery : "" %></asp:Content>
|
|
|
|
<asp:Content runat="server" ID="Main" ContentPlaceHolderID="MainContent">
|
|
|
|
<p>
|
|
|
|
Search results for: <span class="Search-query"><%: Model.SearchQuery %></span>
|
|
|
|
</p>
|
|
|
|
|
2011-02-28 22:30:03 +00:00
|
|
|
<%
|
|
|
|
if (Model.Results.Any()) {
|
2011-02-17 05:30:31 +00:00
|
|
|
foreach (var result in Model.Results) {
|
2011-02-26 01:08:38 +00:00
|
|
|
Html.RenderPartial("SingleQuote", new QuoteModel { Quote = result.Record, User = Model.User });
|
2011-02-17 05:30:31 +00:00
|
|
|
}
|
2011-02-28 22:30:03 +00:00
|
|
|
} else { %>
|
|
|
|
<p>
|
|
|
|
Nothing turned up. You suck at searching for things and you’re ugly.
|
|
|
|
</p>
|
|
|
|
<% } %>
|
2011-02-17 05:30:31 +00:00
|
|
|
</asp:Content>
|