Commit 5e9dfabf by Brittany Cheng

comment info

parent 307ebed8
...@@ -307,7 +307,15 @@ $discussion_input_width: 100%; ...@@ -307,7 +307,15 @@ $discussion_input_width: 100%;
color: gray; color: gray;
font-size: $comment_info_size; font-size: $comment_info_size;
font-style: italic; font-style: italic;
.discussion-reply { .comment-time {
display: inline;
float: right;
margin-right: -4%;
}
.comment-count {
display: inline;
}
.discussion-reply {
margin-left: 4px; margin-left: 4px;
} }
.discussion-link { .discussion-link {
......
...@@ -90,15 +90,19 @@ ...@@ -90,15 +90,19 @@
</%def> </%def>
<%def name="render_info(content)"> <%def name="render_info(content)">
${time_ago_in_words(parse(content['updated_at']))} ago by <div class="comment-time">
% if content['anonymous']: ${time_ago_in_words(parse(content['updated_at']))} ago by
anonymous % if content['anonymous']:
% else: anonymous
user No.${content['user_id']} % else:
% endif user No.${content['user_id']}
% if content.get('comments_count', -1) >= 0: % endif
, <a href="javascript:void(0)" class="discussion-show-comments"> Show ${content['comments_count']} comment(s)</a> </div>
% endif <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>
<%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