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
a0c887cd
Commit
a0c887cd
authored
Sep 07, 2012
by
Tom Giannattasio
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new inline post styles
parent
319d7e14
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
88 additions
and
34 deletions
+88
-34
lms/static/coffee/src/discussion/views/discussion_thread_inline_view.coffee
+4
-4
lms/static/images/small-grey-arrows.png
+0
-0
lms/static/sass/_discussion.scss
+77
-25
lms/templates/discussion/mustache/_inline_thread.mustache
+7
-5
No files found.
lms/static/coffee/src/discussion/views/discussion_thread_inline_view.coffee
View file @
a0c887cd
...
@@ -195,8 +195,8 @@ class @DiscussionThreadInlineView extends DiscussionContentView
...
@@ -195,8 +195,8 @@ class @DiscussionThreadInlineView extends DiscussionContentView
@
expanded
=
true
@
expanded
=
true
@
$el
.
find
(
'.post-body'
).
html
(
@
model
.
get
(
'body'
))
@
$el
.
find
(
'.post-body'
).
html
(
@
model
.
get
(
'body'
))
@
convertMath
()
@
convertMath
()
@
$el
.
find
(
'.expand-post'
).
hide
(
)
@
$el
.
find
(
'.expand-post'
).
css
(
'display'
,
'none'
)
@
$el
.
find
(
'.collapse-post'
).
show
(
)
@
$el
.
find
(
'.collapse-post'
).
css
(
'display'
,
'block'
)
@
$el
.
find
(
'.post-extended-content'
).
show
()
@
$el
.
find
(
'.post-extended-content'
).
show
()
@
makeWmdEditor
"reply-body"
@
makeWmdEditor
"reply-body"
if
@
$el
.
find
(
'.loading'
).
length
if
@
$el
.
find
(
'.loading'
).
length
...
@@ -206,6 +206,6 @@ class @DiscussionThreadInlineView extends DiscussionContentView
...
@@ -206,6 +206,6 @@ class @DiscussionThreadInlineView extends DiscussionContentView
@
expanded
=
false
@
expanded
=
false
@
$el
.
find
(
'.post-body'
).
html
(
@
model
.
get
(
'abbreviatedBody'
))
@
$el
.
find
(
'.post-body'
).
html
(
@
model
.
get
(
'abbreviatedBody'
))
@
convertMath
()
@
convertMath
()
@
$el
.
find
(
'.collapse-post'
).
hide
(
)
@
$el
.
find
(
'.collapse-post'
).
css
(
'display'
,
'none'
)
@
$el
.
find
(
'.post-extended-content'
).
hide
()
@
$el
.
find
(
'.post-extended-content'
).
hide
()
@
$el
.
find
(
'.expand-post'
).
show
(
)
@
$el
.
find
(
'.expand-post'
).
css
(
'display'
,
'block'
)
lms/static/images/small-grey-arrows.png
0 → 100644
View file @
a0c887cd
1.22 KB
lms/static/sass/_discussion.scss
View file @
a0c887cd
...
@@ -1219,27 +1219,32 @@ body.discussion {
...
@@ -1219,27 +1219,32 @@ body.discussion {
padding
:
10px
20px
;
padding
:
10px
20px
;
>
header
.vote-btn
{
>
header
.vote-btn
{
position
:
relative
;
z-index
:
100
;
margin-top
:
5px
;
margin-top
:
5px
;
}
}
.post-tools
{
.post-tools
{
@include
clearfix
;
margin-top
:
15px
;
.ui-icon
{
.ui-icon
{
display
:
inline
;
display
:
inline
;
float
:
right
;
}
a
{
display
:
inline
;
float
:
left
;
float
:
left
;
height
:
26px
;
width
:
13px
;
padding
:
0
12px
;
height
:
13px
;
border-radius
:
3px
;
margin-right
:
4px
;
border
:
1px
solid
#b2b2b2
;
background
:
url(../images/small-grey-arrows.png)
no-repeat
;
@include
linear-gradient
(
top
,
#fff
35%
,
#ebebeb
);
font-size
:
13px
;
&
.expand
{
line-height
:
24px
;
margin-top
:
5px
;
color
:
#737373
;
background-position
:
0
0
;
box-shadow
:
0
1px
1px
rgba
(
0
,
0
,
0
,
0
.1
);
}
width
:
6em
;
&
.collapse
{
margin-top
:
6px
;
background-position
:
-13px
0
;
}
}
}
}
}
}
}
...
@@ -1296,6 +1301,8 @@ body.discussion {
...
@@ -1296,6 +1301,8 @@ body.discussion {
}
}
.vote-btn
{
.vote-btn
{
position
:
relative
;
z-index
:
100
;
float
:
right
;
float
:
right
;
display
:
block
;
display
:
block
;
height
:
27px
;
height
:
27px
;
...
@@ -1441,7 +1448,6 @@ body.discussion {
...
@@ -1441,7 +1448,6 @@ body.discussion {
padding
:
0
;
padding
:
0
;
@include
clearfix
;
@include
clearfix
;
li
{
li
{
float
:
left
;
float
:
left
;
margin-right
:
8px
;
margin-right
:
8px
;
...
@@ -1579,30 +1585,71 @@ body.discussion {
...
@@ -1579,30 +1585,71 @@ body.discussion {
p
{
p
{
margin-bottom
:
0em
;
margin-bottom
:
0em
;
}
}
.discussion-article
{
.discussion-article
{
border
:
1px
solid
;
border
:
1px
solid
#b2b2b2
;
border-radius
:
3px
;
border-radius
:
3px
;
box-shadow
:
0
1px
3px
rgba
(
0
,
0
,
0
,
0
.15
);
box-shadow
:
0
1px
3px
rgba
(
0
,
0
,
0
,
0
.15
);
min-height
:
0
;
min-height
:
0
;
padding
:
1em
;
padding
:
10px
10px
40px
;
.discussion-post
{
.discussion-post
{
@include
clearfix
;
header
{
header
{
padding-bottom
:
0
.1em
;
padding-bottom
:
0
;
margin-bottom
:
1
0
px
;
margin-bottom
:
1
5
px
;
h3
{
font-size
:
22px
;
font-weight
:
700
;
margin-bottom
:
0px
;
}
}
}
.post-body
{
.post-body
{
font-size
:
14px
;
font-size
:
14px
;
clear
:
both
;
clear
:
both
;
}
}
}
}
.post-tools
{
position
:
absolute
;
bottom
:
0
;
left
:
0
;
width
:
100%
;
border-radius
:
0
0
3px
3px
;
border-top
:
1px
solid
#ddd
;
@include
linear-gradient
(
top
,
#f2f2f2
,
#e2e2e2
);
a
{
display
:
block
;
width
:
100%
;
text-align
:
center
;
font-size
:
12px
;
line-height
:
30px
;
&
.expand-post
:before
{
content
:
'▾ '
;
}
&
.collapse-post
:before
{
content
:
'▴ '
;
}
&
.collapse-post
{
display
:
none
;
}
}
}
.responses
{
.responses
{
margin-top
:
10px
;
margin-top
:
10px
;
header
{
header
{
padding-bottom
:
0em
;
padding-bottom
:
0em
;
margin-bottom
:
5px
;
margin-bottom
:
5px
;
.posted-by
{
.posted-by
{
font-size
:
0
.8em
;
font-size
:
0
.8em
;
}
}
...
@@ -1611,20 +1658,20 @@ body.discussion {
...
@@ -1611,20 +1658,20 @@ body.discussion {
margin-bottom
:
0
.2em
;
margin-bottom
:
0
.2em
;
font-size
:
14px
;
font-size
:
14px
;
}
}
}
}
.discussion-reply-new
{
.discussion-reply-new
{
.wmd-input
{
.wmd-input
{
height
:
120px
;
height
:
120px
;
}
}
}
}
// Content that is hidden by default in the inline view
// Content that is hidden by default in the inline view
.post-extended-content
{
.post-extended-content
{
display
:
none
;
display
:
none
;
}
}
.collapse-post
{
display
:none
;
}
}
}
}
}
}
}
...
@@ -1806,10 +1853,15 @@ body.discussion {
...
@@ -1806,10 +1853,15 @@ body.discussion {
margin
:
8px
7px
0
0
;
margin
:
8px
7px
0
0
;
background
:
url(../images/new-post-icon.png)
no-repeat
;
background
:
url(../images/new-post-icon.png)
no-repeat
;
}
}
.moderator-actions
{
padding-left
:
0
!
important
;
}
section
.pagination
{
section
.pagination
{
nav
.discussion-paginator
{
nav
.discussion-paginator
{
ol
{
ol
{
li
{
li
{
list-style
:
none
;
list-style
:
none
;
display
:
inline-block
;
display
:
inline-block
;
padding-right
:
0
.5em
;
padding-right
:
0
.5em
;
...
...
lms/templates/discussion/mustache/_inline_thread.mustache
View file @
a0c887cd
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<div
class=
"discussion-post local"
>
<div
class=
"discussion-post local"
>
<header>
<header>
<a
href=
"#"
class=
"vote-btn discussion-vote discussion-vote-up"
data-role=
"discussion-vote"
><span
class=
"plus-icon"
>
+
</span>
<span
class=
'votes-count-number'
>
{{
votes
.
up_count
}}
</span></a>
<a
href=
"#"
class=
"vote-btn discussion-vote discussion-vote-up"
data-role=
"discussion-vote"
><span
class=
"plus-icon"
>
+
</span>
<span
class=
'votes-count-number'
>
{{
votes
.
up_count
}}
</span></a>
<h
1>
{{
title
}}
</h1
>
<h
3>
{{
title
}}
</h3
>
<p
class=
"posted-details"
>
<p
class=
"posted-details"
>
<span
class=
"timeago"
title=
"
{{
created_at
}}
"
>
{{
created_at
}}
</span>
by
<span
class=
"timeago"
title=
"
{{
created_at
}}
"
>
{{
created_at
}}
</span>
by
<a
href=
"
{{
user_url
}}
"
>
{{
username
}}
</a>
<a
href=
"
{{
user_url
}}
"
>
{{
username
}}
</a>
...
@@ -11,12 +11,9 @@
...
@@ -11,12 +11,9 @@
•
This thread is closed.
•
This thread is closed.
</span>
</span>
</p>
</p>
<div
class=
"local post-tools"
>
<a
href=
"javascript:void(0)"
class=
"expand-post"
>
Expand
<span
class=
"ui-icon ui-icon-triangle-1-e"
/></a>
<a
href=
"javascript:void(0)"
class=
"collapse-post"
>
Collapse
<span
class=
"ui-icon ui-icon-triangle-1-s"
/></a>
</div>
</header>
</header>
<div
class=
"post-body"
>
{{
abbreviatedBody
}}
</div>
<div
class=
"post-body"
>
{{
abbreviatedBody
}}
</div>
<ul
class=
"moderator-actions post-extended-content"
>
<ul
class=
"moderator-actions post-extended-content"
>
<li
style=
"display: none"
><a
class=
"action-edit"
href=
"javascript:void(0)"
><span
class=
"edit-icon"
></span>
Edit
</a></li>
<li
style=
"display: none"
><a
class=
"action-edit"
href=
"javascript:void(0)"
><span
class=
"edit-icon"
></span>
Edit
</a></li>
<li
style=
"display: none"
><a
class=
"action-delete"
href=
"javascript:void(0)"
><span
class=
"delete-icon"
></span>
Delete
</a></li>
<li
style=
"display: none"
><a
class=
"action-delete"
href=
"javascript:void(0)"
><span
class=
"delete-icon"
></span>
Delete
</a></li>
...
@@ -35,4 +32,9 @@
...
@@ -35,4 +32,9 @@
</div>
</div>
</form>
</form>
<div
class=
"local post-tools"
>
<a
href=
"javascript:void(0)"
class=
"expand-post"
>
View discussion
</a>
<a
href=
"javascript:void(0)"
class=
"collapse-post"
>
Hide discussion
</a>
</div>
</article>
</article>
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