Commit 41ef0d36 by Rocky Duan

Merge branch 'discussion2' of github.com:dementrock/mitx into discussion2

parents ab7c869b 0103138c
...@@ -326,7 +326,7 @@ Discussion = ...@@ -326,7 +326,7 @@ Discussion =
interactive: true interactive: true
defaultText: "Tag your post: press enter after each tag" defaultText: "Tag your post: press enter after each tag"
height: "30px" height: "30px"
width: "90%" width: "100%"
removeWithBackspace: true removeWithBackspace: true
$local(".discussion-submit-update").unbind("click").click -> handleSubmitEditThread(this) $local(".discussion-submit-update").unbind("click").click -> handleSubmitEditThread(this)
$local(".discussion-cancel-update").unbind("click").click -> handleCancelEdit(this) $local(".discussion-cancel-update").unbind("click").click -> handleCancelEdit(this)
...@@ -509,7 +509,7 @@ Discussion = ...@@ -509,7 +509,7 @@ Discussion =
interactive: true interactive: true
defaultText: "Tag your post: press enter after each tag" defaultText: "Tag your post: press enter after each tag"
height: "30px" height: "30px"
width: "90%" width: "100%"
removeWithBackspace: true removeWithBackspace: true
$local(".discussion-submit-post").click -> $local(".discussion-submit-post").click ->
handleSubmitNewPost(this) handleSubmitNewPost(this)
......
...@@ -3,7 +3,7 @@ $discussion_title_size: 1.6em; ...@@ -3,7 +3,7 @@ $discussion_title_size: 1.6em;
$comment_title_size: 1.0em; $comment_title_size: 1.0em;
$comment_body_size: 0.9em; $comment_body_size: 0.9em;
$comment_info_size: 0.75em; $comment_info_size: 0.75em;
$discussion_input_width: 90%; $discussion_input_width: 100%;
@mixin discussion-font { @mixin discussion-font {
font-family: inherit; font-family: inherit;
...@@ -23,7 +23,8 @@ $discussion_input_width: 90%; ...@@ -23,7 +23,8 @@ $discussion_input_width: 90%;
.search-wrapper-inline { .search-wrapper-inline {
width: 80%; width: 80%;
display: inline-block; display: inline-block;
margin-top: 2%; margin-top: 3%;
margin-bottom: 6%;
} }
.discussion-search-form { .discussion-search-form {
margin-bottom: 1%; margin-bottom: 1%;
...@@ -56,6 +57,7 @@ $discussion_input_width: 90%; ...@@ -56,6 +57,7 @@ $discussion_input_width: 90%;
.discussion-search-within-board { .discussion-search-within-board {
font-style: normal; font-style: normal;
font: inherit; font: inherit;
font-size: $comment_body_size;
} }
.control-button { .control-button {
@include button; @include button;
...@@ -182,9 +184,13 @@ $discussion_input_width: 90%; ...@@ -182,9 +184,13 @@ $discussion_input_width: 90%;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
} }
} }
.discussion-sort {
float: right;
margin-top: -2.5%;
}
.discussion-content-edit, .discussion-reply-new, .new-post-form { .discussion-content-edit, .discussion-reply-new, .new-post-form {
.new-post-control, .edit-post-control { .new-post-control, .edit-post-control {
margin-left: 70.5%; margin-left: 80%;
margin-top: 1%; margin-top: 1%;
} }
.control-button { .control-button {
...@@ -193,13 +199,13 @@ $discussion_input_width: 90%; ...@@ -193,13 +199,13 @@ $discussion_input_width: 90%;
color: white; color: white;
font-weight: bold; font-weight: bold;
text-decoration: none; text-decoration: none;
margin-left: 3%; margin-left: 10%;
display: inline-block; display: inline-block;
padding-top: 9px; padding-top: 9px;
font-size: inherit; font-size: inherit;
width: inherit; width: inherit;
} }
margin: 10px 0 10px 0; margin: 10px 0 40px 0;
} }
.thread { .thread {
//display: none; //display: none;
......
...@@ -3,9 +3,9 @@ ...@@ -3,9 +3,9 @@
<%def name="link_to_sort(key, title)"> <%def name="link_to_sort(key, title)">
% if key == sort_key: % if key == sort_key:
% if sort_order.lower() == 'desc': % if sort_order.lower() == 'desc':
${_link_to_sort(key, 'asc', title + ' (desc)')} ${_link_to_sort(key, 'asc', title + ' [v]')}
% else: % else:
${_link_to_sort(key, 'desc', title + '(asc)')} ${_link_to_sort(key, 'desc', title + ' [^]')}
% endif % endif
% else: % else:
${_link_to_sort(key, 'desc', title)} ${_link_to_sort(key, 'desc', title)}
...@@ -26,6 +26,8 @@ ...@@ -26,6 +26,8 @@
<div class="discussion-sort"> <div class="discussion-sort">
Sort by: Sort by:
${link_to_sort('date', 'Date')} ${link_to_sort('date', 'Date')}
|
${link_to_sort('votes', 'Votes')} ${link_to_sort('votes', 'Votes')}
|
${link_to_sort('comments', 'Comments')} ${link_to_sort('comments', 'Comments')}
</div> </div>
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