comment.compact: Implement missing show replies contest mode functionality.

This commit is contained in:
Andre D
2013-12-17 15:01:35 -05:00
committed by Keith Mitchell
parent a83f03cf7f
commit 811db5937e
2 changed files with 20 additions and 4 deletions

View File

@@ -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;

View File

@@ -98,8 +98,15 @@
%endif
</div>
</div>
<div style="clear: both"></div>
<div class="child">
${thing.childlisting}
</div>
<div class="commentspacer"></div>
%if thing.link.contest_mode and hasattr(thing, "child") and not thing.parent_id:
<button class="showreplies newbutton"
onclick="$(this).hide();$(this).parent().find('.noncollapsed').show();return false;">
${_("show replies")}
</button>
<div class="child noncollapsed" style="display:none">
%else:
<div class="child">
%endif
${thing.childlisting}</div>
</div>