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

25 lines
1.2 KiB
Plaintext

<%@ Page Title="" Language="C#" Inherits="System.Web.Mvc.ViewPage<VideoGameQuotes.Api.Quote>" MasterPageFile="~/Views/Shared/Site.Master" %>
<%@ Import Namespace="VideoGameQuotes.Api" %>
<asp:Content runat="server" ID="Title" ContentPlaceHolderID="TitleContent"><%: Model.Game.Name %></asp:Content>
<asp:Content runat="server" ID="Main" ContentPlaceHolderID="MainContent">
<div class="quote">
<span class="vote-for" title="I like this quote"><a href="#" id="vote-for">&uarr;</a></span>
<span class="vote-against" title="I dislike this quote"><a href="#" id="vote-against">&darr;</a></span>
<span class="quote-report-link" title="report this quote as inaccurate, fake, spam, duplicate, etc."><a href="#" id="quote-report-link">report</a></span>
<p class="quote-text">
<%: Model.Text %>
</p>
</div>
<div class="quote-details">
<dl>
<dt>Game</dt>
<dd><%= Html.ActionLink(Model.Game.Name, "Index", "Quote", new { game = Model.Game.Id }, null) %></dd>
<dt>Added</dt>
<dd><%: Model.GetHumanReadableTimeSinceCreated() %></dd>
</dl>
</div>
</asp:Content>
<asp:Content runat="server" ID="DeferrableScripts" ContentPlaceHolderID="DeferrableScripts"></asp:Content>