Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
1e7e2f25
Commit
1e7e2f25
authored
Aug 02, 2012
by
Rocky Duan
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'discussion2' of github.com:dementrock/mitx into discussion2
parents
380c6f86
7d414346
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
9 deletions
+17
-9
lms/static/coffee/src/discussion.coffee
+2
-2
lms/static/sass/_discussion.scss
+11
-5
lms/templates/discussion/_sort.html
+4
-2
No files found.
lms/static/coffee/src/discussion.coffee
View file @
1e7e2f25
...
...
@@ -326,7 +326,7 @@ Discussion =
interactive
:
true
defaultText
:
"Tag your post: press enter after each tag"
height
:
"30px"
width
:
"
9
0%"
width
:
"
10
0%"
removeWithBackspace
:
true
$local
(
".discussion-submit-update"
).
unbind
(
"click"
).
click
->
handleSubmitEditThread
(
this
)
$local
(
".discussion-cancel-update"
).
unbind
(
"click"
).
click
->
handleCancelEdit
(
this
)
...
...
@@ -509,7 +509,7 @@ Discussion =
interactive
:
true
defaultText
:
"Tag your post: press enter after each tag"
height
:
"30px"
width
:
"
9
0%"
width
:
"
10
0%"
removeWithBackspace
:
true
$local
(
".discussion-submit-post"
).
click
->
handleSubmitNewPost
(
this
)
...
...
lms/static/sass/_discussion.scss
View file @
1e7e2f25
...
...
@@ -3,7 +3,7 @@ $discussion_title_size: 1.6em;
$comment_title_size
:
1
.0em
;
$comment_body_size
:
0
.9em
;
$comment_info_size
:
0
.75em
;
$discussion_input_width
:
9
0%
;
$discussion_input_width
:
10
0%
;
@mixin
discussion-font
{
font-family
:
inherit
;
...
...
@@ -23,7 +23,8 @@ $discussion_input_width: 90%;
.search-wrapper-inline
{
width
:
80%
;
display
:
inline-block
;
margin-top
:
2%
;
margin-top
:
3%
;
margin-bottom
:
6%
;
}
.discussion-search-form
{
margin-bottom
:
1%
;
...
...
@@ -56,6 +57,7 @@ $discussion_input_width: 90%;
.discussion-search-within-board
{
font-style
:
normal
;
font
:
inherit
;
font-size
:
$comment_body_size
;
}
.control-button
{
@include
button
;
...
...
@@ -182,9 +184,13 @@ $discussion_input_width: 90%;
-webkit-font-smoothing
:
antialiased
;
}
}
.discussion-sort
{
float
:
right
;
margin-top
:
-2
.5%
;
}
.discussion-content-edit
,
.discussion-reply-new
,
.new-post-form
{
.new-post-control
,
.edit-post-control
{
margin-left
:
70
.5
%
;
margin-left
:
80
%
;
margin-top
:
1%
;
}
.control-button
{
...
...
@@ -193,13 +199,13 @@ $discussion_input_width: 90%;
color
:
white
;
font-weight
:
bold
;
text-decoration
:
none
;
margin-left
:
3
%
;
margin-left
:
10
%
;
display
:
inline-block
;
padding-top
:
9px
;
font-size
:
inherit
;
width
:
inherit
;
}
margin
:
10px
0
1
0px
0
;
margin
:
10px
0
4
0px
0
;
}
.thread
{
//display: none;
...
...
lms/templates/discussion/_sort.html
View file @
1e7e2f25
...
...
@@ -3,9 +3,9 @@
<
%
def
name=
"link_to_sort(key, title)"
>
% if key == sort_key:
% if sort_order.lower() == 'desc':
${_link_to_sort(key, 'asc', title + '
(desc)
')}
${_link_to_sort(key, 'asc', title + '
[v]
')}
% else:
${_link_to_sort(key, 'desc', title + '
(asc)
')}
${_link_to_sort(key, 'desc', title + '
[^]
')}
% endif
% else:
${_link_to_sort(key, 'desc', title)}
...
...
@@ -26,6 +26,8 @@
<div
class=
"discussion-sort"
>
Sort by:
${link_to_sort('date', 'Date')}
|
${link_to_sort('votes', 'Votes')}
|
${link_to_sort('comments', 'Comments')}
</div>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment