comment info
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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)">
|
||||
|
||||
Reference in New Issue
Block a user