2011-02-14 11:01:31 +00:00
|
|
|
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<VideoGameQuotes.Web.Models.QuoteModel>" %>
|
2011-02-19 09:41:09 +00:00
|
|
|
<%@ Import Namespace="Portoa.Util" %>
|
2011-02-14 11:01:31 +00:00
|
|
|
<%@ Import Namespace="VideoGameQuotes.Api" %>
|
|
|
|
|
|
|
|
<div class="quote-container">
|
2011-02-15 00:14:24 +00:00
|
|
|
<input type="hidden" class="quote-id" value="<%= Model.Quote.Id %>" />
|
2011-02-14 11:01:31 +00:00
|
|
|
<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>
|
2011-02-16 02:48:58 +00:00
|
|
|
<div class="quote-score" title="+<%= Model.Quote.UpVotes %>, -<%= Model.Quote.DownVotes %>"><%= Model.Quote.Score %></div>
|
2011-02-14 11:01:31 +00:00
|
|
|
<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">
|
2011-02-19 09:41:09 +00:00
|
|
|
<div class="quote-links">
|
|
|
|
<a class="quote-report-link" href="#" title="report this quote as inaccurate, fake, spam, duplicate, etc.">report</a>
|
|
|
|
<% if (Model.User != null && Model.User.Group >= UserGroup.Admin) { %>
|
|
|
|
| <%= Html.ActionLink("flags", "flags", "quote", new { id = Model.Quote.Id }, null) %>
|
|
|
|
| <%= Html.ActionLink("edit", "edit", "quote", new { id = Model.Quote.Id }, null) %>
|
|
|
|
<% } %>
|
|
|
|
</div>
|
2011-02-14 11:01:31 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="quote-details">
|
|
|
|
<dl>
|
|
|
|
<dt>Game</dt>
|
2011-02-19 09:41:09 +00:00
|
|
|
<dd><%= Html.ActionLink(Model.Quote.Game.Name, "browse", "Quote", new { qualifiers = "game/" + Model.Quote.Game.Id }, null) %></dd>
|
2011-02-14 11:01:31 +00:00
|
|
|
<dt>Added</dt>
|
|
|
|
<dd><%: Model.Quote.GetHumanReadableTimeSinceCreated() %></dd>
|
2011-02-19 09:41:09 +00:00
|
|
|
<dt>Categories</dt>
|
|
|
|
<dd>
|
|
|
|
<%= Model.Quote.Categories.Implode(category => Html.ActionLink(category.Name, "browse", "Quote", new { qualifiers = "category/" + category.Id }, null).ToString(), ", ")%>
|
|
|
|
</dd>
|
2011-02-14 11:01:31 +00:00
|
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
</div>
|