Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
comment.compact: Implement missing show replies contest mode function…
Browse files Browse the repository at this point in the history
…ality.
  • Loading branch information
andre-d authored and kemitche committed Feb 25, 2014
1 parent a83f03c commit 811db59
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
9 changes: 9 additions & 0 deletions r2/r2/public/static/css/compact.css
Expand Up @@ -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;
Expand Down
15 changes: 11 additions & 4 deletions r2/r2/templates/comment.compact
Expand Up @@ -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>

0 comments on commit 811db59

Please sign in to comment.