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
a9b171c8
Commit
a9b171c8
authored
Aug 07, 2012
by
Rocky Duan
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'discussion3' of github.com:dementrock/mitx
Conflicts: lms/static/coffee/src/discussion/templates.coffee
parents
0560bb7e
4b9358fb
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
38 additions
and
8 deletions
+38
-8
lms/static/coffee/src/discussion/templates.coffee
+1
-1
lms/static/sass/_discussion.scss
+27
-1
lms/templates/discussion/_blank_slate.html
+2
-2
lms/templates/discussion/_forum.html
+4
-2
lms/templates/discussion/_inline.html
+4
-2
No files found.
lms/static/coffee/src/discussion/templates.coffee
View file @
a9b171c8
...
@@ -11,7 +11,7 @@ Discussion = @Discussion
...
@@ -11,7 +11,7 @@ Discussion = @Discussion
<ul class="discussion-errors"></ul>
<ul class="discussion-errors"></ul>
<input type="text" class="new-post-title title-input" placeholder="Title"/>
<input type="text" class="new-post-title title-input" placeholder="Title"/>
<div class="new-post-similar-posts-wrapper" style="display: none">
<div class="new-post-similar-posts-wrapper" style="display: none">
Do you mean... <a class="hide-similar-posts" href="javascript:void(0)">No you got it wrong lol
</a>
Similar Posts: <a class="hide-similar-posts" href="javascript:void(0)">These are not what I want
</a>
<div class="new-post-similar-posts"></div>
<div class="new-post-similar-posts"></div>
</div>
</div>
<div class="new-post-body body-input"></div>
<div class="new-post-body body-input"></div>
...
...
lms/static/sass/_discussion.scss
View file @
a9b171c8
...
@@ -45,6 +45,9 @@ form label {
...
@@ -45,6 +45,9 @@ form label {
margin-left
:
5px
;
margin-left
:
5px
;
}
}
}
}
.blank
{
margin
:
2%
;
}
//SORTING
//SORTING
.discussion-sort
{
.discussion-sort
{
float
:
right
;
float
:
right
;
...
@@ -213,11 +216,17 @@ form label {
...
@@ -213,11 +216,17 @@ form label {
display
:
block
;
display
:
block
;
margin-left
:
-5%
;
margin-left
:
-5%
;
}
}
.new-post-similar-posts-wrapper
{
font-size
:
$comment_body_size
;
line-height
:
150%
;
padding
:
1%
;
}
.new-post-similar-posts
{
.new-post-similar-posts
{
font
:
inherit
;
.similar-post
{
.similar-post
{
display
:
block
;
display
:
block
;
line-height
:
150%
;
}
}
}
}
.new-post-body
{
.new-post-body
{
margin-top
:
flex-gutter
();
margin-top
:
flex-gutter
();
...
@@ -243,6 +252,10 @@ form label {
...
@@ -243,6 +252,10 @@ form label {
}
}
.discussion-content-edit
,
.discussion-reply-new
,
.new-post-form
{
.discussion-content-edit
,
.discussion-reply-new
,
.new-post-form
{
margin
:
10px
0
10px
0
;
margin
:
10px
0
10px
0
;
a
:hover
{
color
:
#1C71DD
;
text-decoration
:
none
;
};
.new-post-control
{
.new-post-control
{
margin-left
:
80%
;
margin-left
:
80%
;
margin-top
:
1%
;
margin-top
:
1%
;
...
@@ -265,6 +278,9 @@ form label {
...
@@ -265,6 +278,9 @@ form label {
padding-top
:
9px
;
padding-top
:
9px
;
text-decoration
:
none
;
text-decoration
:
none
;
width
:
inherit
;
width
:
inherit
;
&
:hover
{
color
:
white
;
}
}
}
}
}
.new-post-form
{
.new-post-form
{
...
@@ -326,6 +342,12 @@ form label {
...
@@ -326,6 +342,12 @@ form label {
font-size
:
$comment_info_size
;
font-size
:
$comment_info_size
;
font-style
:
italic
;
font-style
:
italic
;
margin-top
:
2%
;
margin-top
:
2%
;
a
{
&
:hover
{
text-decoration
:
none
;
color
:
#1C71DD
;
}
}
.comment-time
{
.comment-time
{
display
:
inline
;
display
:
inline
;
float
:
right
;
float
:
right
;
...
@@ -342,6 +364,10 @@ form label {
...
@@ -342,6 +364,10 @@ form label {
color
:
#1d9dd9
;
color
:
#1d9dd9
;
display
:
inline
;
display
:
inline
;
margin-left
:
2px
;
margin-left
:
2px
;
&
:hover
{
text-decoration
:
none
;
color
:
#1C71DD
;
}
}
}
}
}
.discussion-content
{
.discussion-content
{
...
...
lms/templates/discussion/_blank_slate.html
View file @
a9b171c8
<div
class=
"blank-state"
>
<div
class=
"blank-state"
>
% if performed_search:
% if performed_search:
There is no result matching your search parameters
.
Sorry! We can't find anything matching your search. Please try another search
.
% else:
% else:
There
is no post
here yet. Be the first one to post!
There
are no posts
here yet. Be the first one to post!
% endif
% endif
</div>
</div>
lms/templates/discussion/_forum.html
View file @
a9b171c8
...
@@ -14,18 +14,20 @@
...
@@ -14,18 +14,20 @@
</div>
</div>
<div
class=
"discussion-new-post control-button"
href=
"javascript:void(0)"
>
New Post
</div>
<div
class=
"discussion-new-post control-button"
href=
"javascript:void(0)"
>
New Post
</div>
</div>
</div>
<
%
include
file=
"_sort.html"
/>
% if len(threads) == 0:
% if len(threads) == 0:
<div
class=
"blank"
>
<
%
include
file=
"_blank_slate.html"
/>
<
%
include
file=
"_blank_slate.html"
/>
</div>
<div
class=
"threads"
></div>
<div
class=
"threads"
></div>
% else:
% else:
<
%
include
file=
"_sort.html"
/>
<div
class=
"threads"
>
<div
class=
"threads"
>
% for thread in threads:
% for thread in threads:
${renderer.render_thread(course_id, thread, show_comments=False)}
${renderer.render_thread(course_id, thread, show_comments=False)}
% endfor
% endfor
</div>
</div>
% endif
<
%
include
file=
"_paginator.html"
/>
<
%
include
file=
"_paginator.html"
/>
% endif
</section>
</section>
<
%!
<
%!
...
...
lms/templates/discussion/_inline.html
View file @
a9b171c8
...
@@ -6,19 +6,21 @@
...
@@ -6,19 +6,21 @@
<
%
include
file=
"_search_bar.html"
/>
<
%
include
file=
"_search_bar.html"
/>
</div>
</div>
<div
class=
"discussion-new-post control-button"
href=
"javascript:void(0)"
>
New Post
</div>
<div
class=
"discussion-new-post control-button"
href=
"javascript:void(0)"
>
New Post
</div>
<
%
include
file=
"_sort.html"
/>
</div>
</div>
% if len(threads) == 0:
% if len(threads) == 0:
<div
class=
"blank"
>
<
%
include
file=
"_blank_slate.html"
/>
<
%
include
file=
"_blank_slate.html"
/>
</div>
<div
class=
"threads"
></div>
<div
class=
"threads"
></div>
% else:
% else:
<
%
include
file=
"_sort.html"
/>
<div
class=
"threads"
>
<div
class=
"threads"
>
% for thread in threads:
% for thread in threads:
${renderer.render_thread(course_id, thread, show_comments=False)}
${renderer.render_thread(course_id, thread, show_comments=False)}
% endfor
% endfor
</div>
</div>
% endif
<
%
include
file=
"_paginator.html"
/>
<
%
include
file=
"_paginator.html"
/>
% endif
</section>
</section>
<
%!
<
%!
...
...
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