comment info

This commit is contained in:
Brittany Cheng
2012-08-06 14:33:37 -04:00
parent 307ebed8f6
commit 5e9dfabfda
2 changed files with 22 additions and 10 deletions

View File

@@ -307,7 +307,15 @@ $discussion_input_width: 100%;
color: gray;
font-size: $comment_info_size;
font-style: italic;
.discussion-reply {
.comment-time {
display: inline;
float: right;
margin-right: -4%;
}
.comment-count {
display: inline;
}
.discussion-reply {
margin-left: 4px;
}
.discussion-link {

View File

@@ -90,15 +90,19 @@
</%def>
<%def name="render_info(content)">
${time_ago_in_words(parse(content['updated_at']))} ago by
% if content['anonymous']:
anonymous
% else:
user No.${content['user_id']}
% endif
% if content.get('comments_count', -1) >= 0:
, <a href="javascript:void(0)" class="discussion-show-comments"> Show ${content['comments_count']} comment(s)</a>
% endif
<div class="comment-time">
${time_ago_in_words(parse(content['updated_at']))} ago by
% if content['anonymous']:
anonymous
% else:
user No.${content['user_id']}
% endif
</div>
<div class="comment-count">
% if content.get('comments_count', -1) >= 0:
<a href="javascript:void(0)" class="discussion-show-comments"> Show ${content['comments_count']} comment(s)</a>
% endif
</div>
</%def>
<%def name="render_link(cls, html)">