From 983be398d20fce6b2aad72ec8a3dc205621d2d29 Mon Sep 17 00:00:00 2001 From: Andre D Date: Mon, 12 Aug 2013 02:07:08 -0700 Subject: [PATCH] preview: Preview stickied link. --- r2/r2/controllers/api.py | 4 ++++ r2/r2/templates/subredditstylesheet.html | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/r2/r2/controllers/api.py b/r2/r2/controllers/api.py index fa2b31f56..cbdedae3f 100755 --- a/r2/r2/controllers/api.py +++ b/r2/r2/controllers/api.py @@ -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) diff --git a/r2/r2/templates/subredditstylesheet.html b/r2/r2/templates/subredditstylesheet.html index 3a12baeb2..f4561717c 100644 --- a/r2/r2/templates/subredditstylesheet.html +++ b/r2/r2/templates/subredditstylesheet.html @@ -117,6 +117,10 @@ ${_("link with thumbnail")} + + ${_("stickied link")} + + ${_("comment")}