Commit 27eaffe2 by Brittany Cheng

sort styles

parent 1f5aa5e6
......@@ -102,7 +102,7 @@ $discussion_input_width: 100%;
font-size: $discussion_title_size;
font-weight: bold;
margin-bottom: flex-gutter(6);
display: block;
display: inline-block;
}
.discussion-title-wrapper {
.discussion-watch-discussion, .discussion-unwatch-discussion {
......@@ -111,9 +111,6 @@ $discussion_input_width: 100%;
margin-left: 5px;
font-size: $comment_info_size;
}
.discussion-title {
display: inline-block;
}
}
.follow-wrapper {
float: right;
......@@ -302,8 +299,8 @@ $discussion_input_width: 100%;
@include discussion-font;
font-size: $comment_info_size;
font-style: italic;
color: gray;
.discussion-reply {
color: gray;
.discussion-reply {
margin-left: 4px;
}
.discussion-link {
......@@ -378,6 +375,7 @@ $discussion_input_width: 100%;
}
}
//editor styles
.wmd-panel
{
......
......@@ -13,8 +13,8 @@
<label for="discussion-search-within-board-${discussion_id}" class="discussion-search-within-board">Search within board</label>
</div>
<div class="discussion-new-post control-button" href="javascript:void(0)">New Post</div>
<%include file="_sort.html" />
</div>
<%include file="_sort.html" />
<div class="threads">
% for thread in threads:
${renderer.render_thread(course_id, thread, show_comments=False)}
......
......@@ -79,15 +79,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:
, ${content['comments_count']} comment(s)
% 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:
${content['comments_count']} comment(s)
% endif
</div>
</%def>
<%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