LinkOrDefault now returns IHtmlString. Replaced calls to <%= with <%: where relevant to this change.

--HG--
branch : dev
This commit is contained in:
Phil Haack
2010-06-09 23:39:02 -07:00
parent 013638aca8
commit 65772415fd
6 changed files with 96 additions and 24 deletions

View File

@@ -4,7 +4,7 @@
foreach (var comment in Model) { %>
<li>
<div class="comment">
<span class="who"><%=Html.LinkOrDefault(Html.Encode(comment.Record.UserName), Html.Encode(comment.Record.SiteName), new { rel = "nofollow" })%></span>
<span class="who"><%: Html.LinkOrDefault(comment.Record.UserName, comment.Record.SiteName, new { rel = "nofollow" })%></span>
<%-- todo: (heskew) need comment permalink --%>
<span>said <%: Html.Link(Html.DateTimeRelative(comment.Record.CommentDateUtc.GetValueOrDefault()), "#")%></span>
</div>