vgquotes/Src/VideoGameQuotes.Web/Views/Quote/QuoteOfTheDay.ascx

22 lines
712 B
Plaintext
Raw Normal View History

2011-02-28 00:38:47 +00:00
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<VideoGameQuotes.Api.Quote>" %>
<%@ Import Namespace="VideoGameQuotes.Api" %>
<% if (Model == null) { return; } %>
2011-02-28 00:38:47 +00:00
<div class="quote-container">
<div class="quote-data clearfix">
<div class="quote-score-container">
<div class="vote-container">
</div>
<div class="quote-score" title="+<%= Model.UpVotes %>, -<%= Model.DownVotes %>"><%= Model.Score %></div>
<div class="vote-container">
</div>
</div>
<div class="quote-text">
<a href="<%= Url.Action("Quote", "Quote", new { id = Model.Id, text = Model.GetUrlFriendlyText() }) %>">
2011-02-28 00:38:47 +00:00
<%= Model.FormatTextForHtml() %>
</a>
</div>
</div>
</div>