Commit 5e9dfabf by Brittany Cheng

comment info

parent 307ebed8
...@@ -307,6 +307,14 @@ $discussion_input_width: 100%; ...@@ -307,6 +307,14 @@ $discussion_input_width: 100%;
color: gray; color: gray;
font-size: $comment_info_size; font-size: $comment_info_size;
font-style: italic; font-style: italic;
.comment-time {
display: inline;
float: right;
margin-right: -4%;
}
.comment-count {
display: inline;
}
.discussion-reply { .discussion-reply {
margin-left: 4px; margin-left: 4px;
} }
......
...@@ -90,15 +90,19 @@ ...@@ -90,15 +90,19 @@
</%def> </%def>
<%def name="render_info(content)"> <%def name="render_info(content)">
<div class="comment-time">
${time_ago_in_words(parse(content['updated_at']))} ago by ${time_ago_in_words(parse(content['updated_at']))} ago by
% if content['anonymous']: % if content['anonymous']:
anonymous anonymous
% else: % else:
user No.${content['user_id']} user No.${content['user_id']}
% endif % endif
</div>
<div class="comment-count">
% if content.get('comments_count', -1) >= 0: % if content.get('comments_count', -1) >= 0:
, <a href="javascript:void(0)" class="discussion-show-comments"> Show ${content['comments_count']} comment(s)</a> <a href="javascript:void(0)" class="discussion-show-comments"> Show ${content['comments_count']} comment(s)</a>
% endif % endif
</div>
</%def> </%def>
<%def name="render_link(cls, html)"> <%def name="render_link(cls, html)">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment