vgquotes/Src/VideoGameQuotes.Web/Views/Quote/Search.aspx

14 lines
729 B
Plaintext
Raw Normal View History

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>
<%
foreach (var result in Model.Results) {
Html.RenderPartial("SingleQuote", new QuoteModel {Quote = result.Entity, User = Model.User });
2011-02-17 05:30:31 +00:00
}
%>
</asp:Content>