preview: Preview stickied link.

This commit is contained in:
Andre D
2013-08-12 02:07:08 -07:00
committed by Neil Williams
parent d2a3074ee8
commit 983be398d2
2 changed files with 8 additions and 0 deletions

View File

@@ -1630,6 +1630,10 @@ class ApiController(RedditController, OAuth2ResourceController):
jquery('#preview_link_compressed').html(
cssfilter.rendered_link(links, media = 'off',
compress=True))
# do a stickied link
jquery('#preview_link_stickied').html(
cssfilter.rendered_link(links, media='off',
compress=False, stickied=True))
# and do a comment
comments = cssfilter.find_preview_comments(c.site)

View File

@@ -117,6 +117,10 @@
<th>${_("link with thumbnail")}</th>
<td id="preview_link_media"></td>
</tr>
<tr>
<th>${_("stickied link")}</th>
<td id="preview_link_stickied"></td>
</tr>
<tr>
<th>${_("comment")}</th>
<td id="preview_comment"></td>