From 811db5937e19b3bf26eede4891277efea8c15eda Mon Sep 17 00:00:00 2001 From: Andre D Date: Tue, 17 Dec 2013 15:01:35 -0500 Subject: [PATCH] comment.compact: Implement missing show replies contest mode functionality. --- r2/r2/public/static/css/compact.css | 9 +++++++++ r2/r2/templates/comment.compact | 15 +++++++++++---- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/r2/r2/public/static/css/compact.css b/r2/r2/public/static/css/compact.css index a7aca87ff..6d287da9f 100644 --- a/r2/r2/public/static/css/compact.css +++ b/r2/r2/public/static/css/compact.css @@ -587,6 +587,15 @@ a.author { margin-right: 0.5em; } .linkflair { font-weight: normal; max-width: 10em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } +.commentspacer { + clear: both; +} + +.showreplies { + padding: 0; + margin-left: 40px; +} + .notice-taken, .notice-available { display: none; line-height: 16px; diff --git a/r2/r2/templates/comment.compact b/r2/r2/templates/comment.compact index f52bf2e12..a2661d401 100644 --- a/r2/r2/templates/comment.compact +++ b/r2/r2/templates/comment.compact @@ -98,8 +98,15 @@ %endif -
-
- ${thing.childlisting} -
+
+ %if thing.link.contest_mode and hasattr(thing, "child") and not thing.parent_id: + +