39 lines
1.3 KiB
Plaintext
39 lines
1.3 KiB
Plaintext
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<VideoGameQuotes.Web.Models.QuoteModel>" %>
|
|
<%@ Import Namespace="VideoGameQuotes.Api" %>
|
|
|
|
<div class="quote-container">
|
|
<input type="hidden" class="quote-id" value="<%= Model.Quote.Id %>" />
|
|
<div class="quote-data clearfix">
|
|
<div class="quote-score-container">
|
|
<div class="vote-container">
|
|
<% if (!Model.VotedUp) { %>
|
|
<span class="vote-for" title="I like this quote">▲</span>
|
|
<% } %>
|
|
</div>
|
|
<div class="quote-score" title="+<%= Model.Quote.UpVotes %>, -<%= Model.Quote.DownVotes %>"><%= Model.Quote.NetVotes %></div>
|
|
<div class="vote-container">
|
|
<% if (!Model.VotedDown) { %>
|
|
<span class="vote-against" title="I hate this quote">▼</span>
|
|
<% } %>
|
|
</div>
|
|
</div>
|
|
|
|
<p class="quote-text">
|
|
<%: Model.Quote.Text %>
|
|
</p>
|
|
</div>
|
|
|
|
<div class="clearfix">
|
|
<a class="quote-report-link" href="#" title="report this quote as inaccurate, fake, spam, duplicate, etc.">report</a>
|
|
</div>
|
|
|
|
<div class="quote-details">
|
|
<dl>
|
|
<dt>Game</dt>
|
|
<dd><%= Html.ActionLink(Model.Quote.Game.Name, "browse", "Quote", new { game = Model.Quote.Game.Id }, null) %></dd>
|
|
<dt>Added</dt>
|
|
<dd><%: Model.Quote.GetHumanReadableTimeSinceCreated() %></dd>
|
|
</dl>
|
|
</div>
|
|
</div>
|