14 lines
728 B
Plaintext
14 lines
728 B
Plaintext
|
<%@ 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>
|
||
|
|
||
|
<%
|
||
|
foreach (var result in Model.Results) {
|
||
|
Html.RenderPartial("SingleQuote", new QuoteModel {Quote = result.Quote, User = Model.User });
|
||
|
}
|
||
|
%>
|
||
|
</asp:Content>
|