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
69475c63
Commit
69475c63
authored
Aug 03, 2012
by
Brittany Cheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move follow, remove hover
parent
dac28f80
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
16 deletions
+21
-16
lms/static/coffee/src/discussion/content.coffee
+0
-10
lms/static/coffee/src/discussion/discussion.coffee
+1
-1
lms/static/coffee/src/discussion/templates.coffee
+4
-2
lms/static/sass/_discussion.scss
+14
-3
lms/templates/discussion/_thread.html
+2
-0
No files found.
lms/static/coffee/src/discussion/content.coffee
View file @
69475c63
...
...
@@ -13,16 +13,6 @@ Discussion = @Discussion
id
=
$content
.
attr
(
"_id"
)
discussionContentHoverIn
=
->
status
=
$discussionContent
.
attr
(
"status"
)
||
"normal"
if
status
==
"normal"
$local
(
".discussion-link"
).
show
()
discussionContentHoverOut
=
->
$local
(
".discussion-link"
).
hide
()
$discussionContent
.
hover
(
discussionContentHoverIn
,
discussionContentHoverOut
)
handleReply
=
(
elem
)
->
$replyView
=
$local
(
".discussion-reply-new"
)
if
$replyView
.
length
...
...
lms/static/coffee/src/discussion/discussion.coffee
View file @
69475c63
...
...
@@ -58,7 +58,7 @@ initializeFollowThread = (index, thread) ->
$thread
=
$
(
thread
)
id
=
$thread
.
attr
(
"_id"
)
$thread
.
children
(
".discussion-content"
)
.
find
(
".
info
"
)
.
find
(
".
follow-wrapper
"
)
.
append
(
subscriptionLink
(
'thread'
,
id
))
@
Discussion
=
$
.
extend
@
Discussion
,
...
...
lms/static/coffee/src/discussion/templates.coffee
View file @
69475c63
...
...
@@ -52,7 +52,9 @@ Discussion = @Discussion
<form class="discussion-content-edit discussion-comment-edit" _id="{{id}}">
<ul class="discussion-errors discussion-update-errors"></ul>
<div class="comment-body-edit body-input">{{body}}</div>
<a class="discussion-submit-update control-button" href="javascript:void(0)">Update</a>
<a class="discussion-cancel-update control-button" href="javascript:void(0)">Cancel</a>
<div class = "edit-post-control">
<a class="discussion-cancel-update" href="javascript:void(0)">Cancel</a>
<a class="discussion-submit-update control-button" href="javascript:void(0)">Update</a>
</div>
</form>
"""
lms/static/sass/_discussion.scss
View file @
69475c63
...
...
@@ -120,6 +120,14 @@ $discussion_input_width: 100%;
}
}
}
.follow-wrapper
{
float
:
right
;
margin-top
:
-1
.5%
;
.discussion-link
{
display
:
inline
;
font-size
:
$comment_info_size
;
}
}
.discussion-votes
{
text-align
:
center
;
height
:
flex-grid
(
3
);
...
...
@@ -193,13 +201,17 @@ $discussion_input_width: 100%;
}
}
.discussion-content-edit
,
.discussion-reply-new
,
.new-post-form
{
.new-post-control
,
.edit-post-control
{
.new-post-control
{
margin-left
:
80%
;
margin-top
:
1%
;
}
.reply-post-control
{
margin-left
:
73%
;
}
.edit-post-control
{
margin-left
:
79%
;
margin-top
:
-1%
;
}
.control-button
{
@include
button
;
@include
discussion-font
;
...
...
@@ -271,9 +283,8 @@ $discussion_input_width: 100%;
.discussion-link
{
@include
discussion-font
;
margin-left
:
2px
;
display
:
inline-block
;
color
:
#1d9dd9
;
display
:
no
ne
;
display
:
inli
ne
;
}
}
...
...
lms/templates/discussion/_thread.html
View file @
69475c63
...
...
@@ -32,6 +32,8 @@
<
%
def
name=
"render_content(content, type, **kwargs)"
>
<div
class=
"discussion-content"
>
<div
class=
"discussion-content-wrapper clearfix"
>
<div
class=
"follow-wrapper"
>
</div>
${render_vote(content)}
<div
class=
"discussion-right-wrapper clearfix"
>
${render_title(content, type, **kwargs)}
...
...
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