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
91fce2a9
Commit
91fce2a9
authored
Mar 09, 2017
by
Albert St. Aubin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updates to correct a header styling issue and to make the starting header level selectable
parent
bf08c6ed
Hide whitespace changes
Inline
Side-by-side
Showing
29 changed files
with
77 additions
and
42 deletions
+77
-42
common/lib/xmodule/xmodule/js/fixtures/jsinput_problem.html
+1
-1
common/lib/xmodule/xmodule/js/fixtures/problem_content.html
+1
-1
common/lib/xmodule/xmodule/js/fixtures/problem_content_1240.html
+1
-1
common/static/common/js/discussion/views/discussion_inline_view.js
+8
-2
common/static/common/js/discussion/views/discussion_thread_edit_view.js
+4
-1
common/static/common/js/discussion/views/discussion_thread_show_view.js
+3
-2
common/static/common/js/discussion/views/discussion_thread_view.js
+10
-3
common/static/common/js/discussion/views/new_post_view.js
+4
-1
common/static/common/js/discussion/views/response_comment_edit_view.js
+5
-2
common/static/common/js/discussion/views/response_comment_view.js
+4
-2
common/static/common/js/discussion/views/thread_response_edit_view.js
+5
-2
common/static/common/js/discussion/views/thread_response_view.js
+5
-2
common/static/common/templates/components/paging-header.underscore
+1
-1
common/static/common/templates/discussion/new-post.underscore
+2
-1
common/static/common/templates/discussion/response-comment-edit.underscore
+1
-1
common/static/common/templates/discussion/thread-edit.underscore
+1
-1
common/static/common/templates/discussion/thread-response-edit.underscore
+1
-1
common/static/common/templates/discussion/thread-show.underscore
+1
-1
common/static/common/templates/discussion/thread.underscore
+2
-1
lms/djangoapps/discussion/static/discussion/js/discussion_board_factory.js
+2
-1
lms/djangoapps/discussion/static/discussion/js/discussion_router.js
+7
-0
lms/djangoapps/teams/static/teams/js/views/team_discussion.js
+2
-1
lms/djangoapps/teams/static/teams/templates/team-profile.underscore
+1
-1
lms/static/sass/base/_headings.scss
+1
-6
lms/static/sass/course/courseware/_courseware.scss
+0
-2
lms/templates/components/header/header.underscore
+1
-1
lms/templates/discussion/_discussion_inline.html
+1
-1
lms/templates/lti.html
+1
-1
lms/templates/problem.html
+1
-1
No files found.
common/lib/xmodule/xmodule/js/fixtures/jsinput_problem.html
View file @
91fce2a9
<h3
class=
"hd hd-
2
problem-header"
>
Custom Javascript Display and Grading
</h3>
<h3
class=
"hd hd-
3
problem-header"
>
Custom Javascript Display and Grading
</h3>
<div
class=
"problem"
>
<div
class=
"problem"
>
<div>
<div>
...
...
common/lib/xmodule/xmodule/js/fixtures/problem_content.html
View file @
91fce2a9
<h3
class=
"hd hd-
2
problem-header"
>
Problem Header
</h3>
<h3
class=
"hd hd-
3
problem-header"
>
Problem Header
</h3>
<div
class=
'problem-progress'
></div>
<div
class=
'problem-progress'
></div>
...
...
common/lib/xmodule/xmodule/js/fixtures/problem_content_1240.html
View file @
91fce2a9
<h3
class=
"hd hd-
2
problem-header"
>
Problem Header
</h3>
<h3
class=
"hd hd-
3
problem-header"
>
Problem Header
</h3>
<div
class=
'problem-progress'
></div>
<div
class=
'problem-progress'
></div>
...
...
common/static/common/js/discussion/views/discussion_inline_view.js
View file @
91fce2a9
...
@@ -24,7 +24,6 @@
...
@@ -24,7 +24,6 @@
initialize
:
function
(
options
)
{
initialize
:
function
(
options
)
{
var
match
;
var
match
;
this
.
$el
=
options
.
el
;
this
.
$el
=
options
.
el
;
this
.
readOnly
=
options
.
readOnly
;
this
.
readOnly
=
options
.
readOnly
;
this
.
showByDefault
=
options
.
showByDefault
||
false
;
this
.
showByDefault
=
options
.
showByDefault
||
false
;
...
@@ -32,6 +31,12 @@
...
@@ -32,6 +31,12 @@
this
.
listenTo
(
this
.
model
,
'change'
,
this
.
render
);
this
.
listenTo
(
this
.
model
,
'change'
,
this
.
render
);
this
.
escKey
=
27
;
this
.
escKey
=
27
;
if
(
options
.
startHeader
!==
undefined
)
{
this
.
startHeader
=
options
.
startHeader
;
}
else
{
this
.
startHeader
=
4
;
// Start the header levels at H<startHeader>
}
match
=
this
.
page_re
.
exec
(
window
.
location
.
href
);
match
=
this
.
page_re
.
exec
(
window
.
location
.
href
);
if
(
match
)
{
if
(
match
)
{
this
.
page
=
parseInt
(
match
[
1
],
10
);
this
.
page
=
parseInt
(
match
[
1
],
10
);
...
@@ -73,7 +78,6 @@
...
@@ -73,7 +78,6 @@
var
discussionHtml
,
var
discussionHtml
,
user
=
new
DiscussionUser
(
response
.
user_info
),
user
=
new
DiscussionUser
(
response
.
user_info
),
self
=
this
;
self
=
this
;
$elem
.
focus
();
$elem
.
focus
();
window
.
user
=
user
;
window
.
user
=
user
;
...
@@ -120,6 +124,7 @@
...
@@ -120,6 +124,7 @@
collection
:
this
.
discussion
,
collection
:
this
.
discussion
,
course_settings
:
this
.
courseSettings
,
course_settings
:
this
.
courseSettings
,
topicId
:
discussionId
,
topicId
:
discussionId
,
startHeader
:
this
.
startHeader
,
is_commentable_cohorted
:
response
.
is_commentable_cohorted
is_commentable_cohorted
:
response
.
is_commentable_cohorted
});
});
...
@@ -146,6 +151,7 @@
...
@@ -146,6 +151,7 @@
el
:
this
.
$
(
'.forum-content'
),
el
:
this
.
$
(
'.forum-content'
),
model
:
thread
,
model
:
thread
,
mode
:
'inline'
,
mode
:
'inline'
,
startHeader
:
this
.
startHeader
,
courseSettings
:
this
.
courseSettings
courseSettings
:
this
.
courseSettings
});
});
this
.
threadView
.
render
();
this
.
threadView
.
render
();
...
...
common/static/common/js/discussion/views/discussion_thread_edit_view.js
View file @
91fce2a9
...
@@ -16,6 +16,7 @@
...
@@ -16,6 +16,7 @@
initialize
:
function
(
options
)
{
initialize
:
function
(
options
)
{
this
.
container
=
options
.
container
||
$
(
'.thread-content-wrapper'
);
this
.
container
=
options
.
container
||
$
(
'.thread-content-wrapper'
);
this
.
mode
=
options
.
mode
||
'inline'
;
this
.
mode
=
options
.
mode
||
'inline'
;
this
.
startHeader
=
options
.
startHeader
;
this
.
course_settings
=
options
.
course_settings
;
this
.
course_settings
=
options
.
course_settings
;
this
.
threadType
=
this
.
model
.
get
(
'thread_type'
);
this
.
threadType
=
this
.
model
.
get
(
'thread_type'
);
this
.
topicId
=
this
.
model
.
get
(
'commentable_id'
);
this
.
topicId
=
this
.
model
.
get
(
'commentable_id'
);
...
@@ -28,8 +29,10 @@
...
@@ -28,8 +29,10 @@
var
formId
=
_
.
uniqueId
(
'form-'
),
var
formId
=
_
.
uniqueId
(
'form-'
),
threadTypeTemplate
=
edx
.
HtmlUtils
.
template
(
$
(
'#thread-type-template'
).
html
()),
threadTypeTemplate
=
edx
.
HtmlUtils
.
template
(
$
(
'#thread-type-template'
).
html
()),
$threadTypeSelector
=
$
(
threadTypeTemplate
({
form_id
:
formId
}).
toString
()),
$threadTypeSelector
=
$
(
threadTypeTemplate
({
form_id
:
formId
}).
toString
()),
context
,
mainTemplate
=
edx
.
HtmlUtils
.
template
(
$
(
'#thread-edit-template'
).
html
());
mainTemplate
=
edx
.
HtmlUtils
.
template
(
$
(
'#thread-edit-template'
).
html
());
edx
.
HtmlUtils
.
setHtml
(
this
.
$el
,
mainTemplate
(
this
.
model
.
toJSON
()));
context
=
$
.
extend
({
mode
:
this
.
mode
,
startHeader
:
this
.
startHeader
},
this
.
model
.
attributes
);
edx
.
HtmlUtils
.
setHtml
(
this
.
$el
,
mainTemplate
(
context
));
this
.
container
.
append
(
this
.
$el
);
this
.
container
.
append
(
this
.
$el
);
this
.
$submitBtn
=
this
.
$
(
'.post-update'
);
this
.
$submitBtn
=
this
.
$
(
'.post-update'
);
this
.
addField
(
$threadTypeSelector
);
this
.
addField
(
$threadTypeSelector
);
...
...
common/static/common/js/discussion/views/discussion_thread_show_view.js
View file @
91fce2a9
...
@@ -30,15 +30,16 @@
...
@@ -30,15 +30,16 @@
var
_ref
;
var
_ref
;
DiscussionThreadShowView
.
__super__
.
initialize
.
call
(
this
);
DiscussionThreadShowView
.
__super__
.
initialize
.
call
(
this
);
this
.
mode
=
options
.
mode
||
'inline'
;
this
.
mode
=
options
.
mode
||
'inline'
;
this
.
startHeader
=
options
.
startHeader
;
if
((
_ref
=
this
.
mode
)
!==
'tab'
&&
_ref
!==
'inline'
)
{
if
((
_ref
=
this
.
mode
)
!==
'tab'
&&
_ref
!==
'inline'
)
{
throw
new
Error
(
'invalid mode: '
+
this
.
mode
);
throw
new
Error
(
'invalid mode: '
+
this
.
mode
);
}
}
};
};
DiscussionThreadShowView
.
prototype
.
renderTemplate
=
function
()
{
DiscussionThreadShowView
.
prototype
.
renderTemplate
=
function
()
{
var
context
;
var
context
=
$
.
extend
({
context
=
$
.
extend
({
mode
:
this
.
mode
,
mode
:
this
.
mode
,
startHeader
:
this
.
startHeader
,
flagged
:
this
.
model
.
isFlagged
(),
flagged
:
this
.
model
.
isFlagged
(),
author_display
:
this
.
getAuthorDisplay
(),
author_display
:
this
.
getAuthorDisplay
(),
cid
:
this
.
model
.
cid
,
cid
:
this
.
model
.
cid
,
...
...
common/static/common/js/discussion/views/discussion_thread_view.js
View file @
91fce2a9
...
@@ -80,6 +80,7 @@
...
@@ -80,6 +80,7 @@
this
.
mode
=
options
.
mode
||
'inline'
;
this
.
mode
=
options
.
mode
||
'inline'
;
this
.
context
=
options
.
context
||
'course'
;
this
.
context
=
options
.
context
||
'course'
;
this
.
options
=
_
.
extend
({},
options
);
this
.
options
=
_
.
extend
({},
options
);
this
.
startHeader
=
options
.
startHeader
;
if
((
_ref
=
this
.
mode
)
!==
'tab'
&&
_ref
!==
'inline'
)
{
if
((
_ref
=
this
.
mode
)
!==
'tab'
&&
_ref
!==
'inline'
)
{
throw
new
Error
(
'invalid mode: '
+
this
.
mode
);
throw
new
Error
(
'invalid mode: '
+
this
.
mode
);
}
}
...
@@ -91,6 +92,7 @@
...
@@ -91,6 +92,7 @@
self
.
model
=
collection
.
get
(
id
);
self
.
model
=
collection
.
get
(
id
);
}
}
});
});
this
.
createShowView
();
this
.
createShowView
();
this
.
responses
=
new
Comments
();
this
.
responses
=
new
Comments
();
this
.
loadedResponses
=
false
;
this
.
loadedResponses
=
false
;
...
@@ -116,7 +118,8 @@
...
@@ -116,7 +118,8 @@
};
};
DiscussionThreadView
.
prototype
.
renderTemplate
=
function
()
{
DiscussionThreadView
.
prototype
.
renderTemplate
=
function
()
{
var
container
,
templateData
;
var
container
,
templateData
;
this
.
template
=
_
.
template
(
$
(
'#thread-template'
).
html
());
this
.
template
=
_
.
template
(
$
(
'#thread-template'
).
html
());
container
=
$
(
'#discussion-container'
);
container
=
$
(
'#discussion-container'
);
if
(
!
container
.
length
)
{
if
(
!
container
.
length
)
{
...
@@ -124,6 +127,7 @@
...
@@ -124,6 +127,7 @@
}
}
templateData
=
_
.
extend
(
this
.
model
.
toJSON
(),
{
templateData
=
_
.
extend
(
this
.
model
.
toJSON
(),
{
readOnly
:
this
.
readOnly
,
readOnly
:
this
.
readOnly
,
startHeader
:
this
.
startHeader
+
1
,
// this is a child so headers should be increased
can_create_comment
:
container
.
data
(
'user-create-comment'
)
can_create_comment
:
container
.
data
(
'user-create-comment'
)
});
});
return
this
.
template
(
templateData
);
return
this
.
template
(
templateData
);
...
@@ -299,7 +303,8 @@
...
@@ -299,7 +303,8 @@
var
view
;
var
view
;
response
.
set
(
'thread'
,
this
.
model
);
response
.
set
(
'thread'
,
this
.
model
);
view
=
new
ThreadResponseView
(
$
.
extend
({
view
=
new
ThreadResponseView
(
$
.
extend
({
model
:
response
model
:
response
,
startHeader
:
this
.
startHeader
+
1
// this is a child so headers should be increased
},
options
));
},
options
));
view
.
on
(
'comment:add'
,
this
.
addComment
);
view
.
on
(
'comment:add'
,
this
.
addComment
);
view
.
on
(
'comment:endorse'
,
this
.
endorseThread
);
view
.
on
(
'comment:endorse'
,
this
.
endorseThread
);
...
@@ -396,6 +401,7 @@
...
@@ -396,6 +401,7 @@
model
:
this
.
model
,
model
:
this
.
model
,
mode
:
this
.
mode
,
mode
:
this
.
mode
,
context
:
this
.
context
,
context
:
this
.
context
,
startHeader
:
this
.
startHeader
,
course_settings
:
this
.
options
.
courseSettings
course_settings
:
this
.
options
.
courseSettings
});
});
this
.
editView
.
bind
(
'thread:updated thread:cancel_edit'
,
this
.
closeEditView
);
this
.
editView
.
bind
(
'thread:updated thread:cancel_edit'
,
this
.
closeEditView
);
...
@@ -415,7 +421,8 @@
...
@@ -415,7 +421,8 @@
DiscussionThreadView
.
prototype
.
createShowView
=
function
()
{
DiscussionThreadView
.
prototype
.
createShowView
=
function
()
{
this
.
showView
=
new
DiscussionThreadShowView
({
this
.
showView
=
new
DiscussionThreadShowView
({
model
:
this
.
model
,
model
:
this
.
model
,
mode
:
this
.
mode
mode
:
this
.
mode
,
startHeader
:
this
.
startHeader
});
});
this
.
showView
.
bind
(
'thread:_delete'
,
this
.
_delete
);
this
.
showView
.
bind
(
'thread:_delete'
,
this
.
_delete
);
return
this
.
showView
.
bind
(
'thread:edit'
,
this
.
edit
);
return
this
.
showView
.
bind
(
'thread:edit'
,
this
.
edit
);
...
...
common/static/common/js/discussion/views/new_post_view.js
View file @
91fce2a9
...
@@ -36,6 +36,7 @@
...
@@ -36,6 +36,7 @@
NewPostView
.
prototype
.
initialize
=
function
(
options
)
{
NewPostView
.
prototype
.
initialize
=
function
(
options
)
{
var
_ref
;
var
_ref
;
this
.
mode
=
options
.
mode
||
'inline'
;
this
.
mode
=
options
.
mode
||
'inline'
;
this
.
startHeader
=
options
.
startHeader
;
if
((
_ref
=
this
.
mode
)
!==
'tab'
&&
_ref
!==
'inline'
)
{
if
((
_ref
=
this
.
mode
)
!==
'tab'
&&
_ref
!==
'inline'
)
{
throw
new
Error
(
'invalid mode: '
+
this
.
mode
);
throw
new
Error
(
'invalid mode: '
+
this
.
mode
);
}
}
...
@@ -45,12 +46,14 @@
...
@@ -45,12 +46,14 @@
};
};
NewPostView
.
prototype
.
render
=
function
()
{
NewPostView
.
prototype
.
render
=
function
()
{
var
context
,
threadTypeTemplate
;
var
context
,
threadTypeTemplate
;
context
=
_
.
clone
(
this
.
course_settings
.
attributes
);
context
=
_
.
clone
(
this
.
course_settings
.
attributes
);
_
.
extend
(
context
,
{
_
.
extend
(
context
,
{
cohort_options
:
this
.
getCohortOptions
(),
cohort_options
:
this
.
getCohortOptions
(),
is_commentable_cohorted
:
this
.
is_commentable_cohorted
,
is_commentable_cohorted
:
this
.
is_commentable_cohorted
,
mode
:
this
.
mode
,
mode
:
this
.
mode
,
startHeader
:
this
.
startHeader
,
form_id
:
this
.
mode
+
(
this
.
topicId
?
'-'
+
this
.
topicId
:
''
)
form_id
:
this
.
mode
+
(
this
.
topicId
?
'-'
+
this
.
topicId
:
''
)
});
});
this
.
$el
.
html
(
_
.
template
(
$
(
'#new-post-template'
).
html
())(
context
));
this
.
$el
.
html
(
_
.
template
(
$
(
'#new-post-template'
).
html
())(
context
));
...
...
common/static/common/js/discussion/views/response_comment_edit_view.js
View file @
91fce2a9
...
@@ -22,7 +22,8 @@
...
@@ -22,7 +22,8 @@
this
.
ResponseCommentEditView
=
(
function
(
_super
)
{
this
.
ResponseCommentEditView
=
(
function
(
_super
)
{
__extends
(
ResponseCommentEditView
,
_super
);
__extends
(
ResponseCommentEditView
,
_super
);
function
ResponseCommentEditView
()
{
function
ResponseCommentEditView
(
options
)
{
this
.
options
=
options
;
return
ResponseCommentEditView
.
__super__
.
constructor
.
apply
(
this
,
arguments
);
return
ResponseCommentEditView
.
__super__
.
constructor
.
apply
(
this
,
arguments
);
}
}
...
@@ -40,8 +41,10 @@
...
@@ -40,8 +41,10 @@
};
};
ResponseCommentEditView
.
prototype
.
render
=
function
()
{
ResponseCommentEditView
.
prototype
.
render
=
function
()
{
var
context
=
$
.
extend
({
mode
:
this
.
options
.
mode
,
startHeader
:
this
.
options
.
startHeader
},
this
.
model
.
attributes
);
this
.
template
=
_
.
template
(
$
(
'#response-comment-edit-template'
).
html
());
this
.
template
=
_
.
template
(
$
(
'#response-comment-edit-template'
).
html
());
this
.
$el
.
html
(
this
.
template
(
this
.
model
.
toJSON
()
));
this
.
$el
.
html
(
this
.
template
(
context
));
this
.
delegateEvents
();
this
.
delegateEvents
();
DiscussionUtil
.
makeWmdEditor
(
this
.
$el
,
$
.
proxy
(
this
.
$
,
this
),
'edit-comment-body'
);
DiscussionUtil
.
makeWmdEditor
(
this
.
$el
,
$
.
proxy
(
this
.
$
,
this
),
'edit-comment-body'
);
return
this
;
return
this
;
...
...
common/static/common/js/discussion/views/response_comment_view.js
View file @
91fce2a9
...
@@ -45,7 +45,8 @@
...
@@ -45,7 +45,8 @@
return
this
.
$el
.
find
(
selector
);
return
this
.
$el
.
find
(
selector
);
};
};
ResponseCommentView
.
prototype
.
initialize
=
function
()
{
ResponseCommentView
.
prototype
.
initialize
=
function
(
options
)
{
this
.
startHeader
=
options
.
startHeader
;
return
ResponseCommentView
.
__super__
.
initialize
.
call
(
this
);
return
ResponseCommentView
.
__super__
.
initialize
.
call
(
this
);
};
};
...
@@ -84,7 +85,8 @@
...
@@ -84,7 +85,8 @@
this
.
showView
=
null
;
this
.
showView
=
null
;
}
}
this
.
editView
=
new
ResponseCommentEditView
({
this
.
editView
=
new
ResponseCommentEditView
({
model
:
this
.
model
model
:
this
.
model
,
startHeader
:
this
.
startHeader
});
});
this
.
editView
.
bind
(
'comment:update'
,
this
.
update
);
this
.
editView
.
bind
(
'comment:update'
,
this
.
update
);
this
.
editView
.
bind
(
'comment:cancel_edit'
,
this
.
cancelEdit
);
this
.
editView
.
bind
(
'comment:cancel_edit'
,
this
.
cancelEdit
);
...
...
common/static/common/js/discussion/views/thread_response_edit_view.js
View file @
91fce2a9
...
@@ -35,13 +35,16 @@
...
@@ -35,13 +35,16 @@
return
this
.
$el
.
find
(
selector
);
return
this
.
$el
.
find
(
selector
);
};
};
ThreadResponseEditView
.
prototype
.
initialize
=
function
()
{
ThreadResponseEditView
.
prototype
.
initialize
=
function
(
options
)
{
this
.
options
=
options
;
return
ThreadResponseEditView
.
__super__
.
initialize
.
call
(
this
);
return
ThreadResponseEditView
.
__super__
.
initialize
.
call
(
this
);
};
};
ThreadResponseEditView
.
prototype
.
render
=
function
()
{
ThreadResponseEditView
.
prototype
.
render
=
function
()
{
var
context
=
$
.
extend
({
mode
:
this
.
options
.
mode
,
startHeader
:
this
.
options
.
startHeader
},
this
.
model
.
attributes
);
this
.
template
=
_
.
template
(
$
(
'#thread-response-edit-template'
).
html
());
this
.
template
=
_
.
template
(
$
(
'#thread-response-edit-template'
).
html
());
this
.
$el
.
html
(
this
.
template
(
this
.
model
.
toJSON
()
));
this
.
$el
.
html
(
this
.
template
(
context
));
this
.
delegateEvents
();
this
.
delegateEvents
();
DiscussionUtil
.
makeWmdEditor
(
this
.
$el
,
$
.
proxy
(
this
.
$
,
this
),
'edit-post-body'
);
DiscussionUtil
.
makeWmdEditor
(
this
.
$el
,
$
.
proxy
(
this
.
$
,
this
),
'edit-post-body'
);
return
this
;
return
this
;
...
...
common/static/common/js/discussion/views/thread_response_view.js
View file @
91fce2a9
...
@@ -59,6 +59,7 @@
...
@@ -59,6 +59,7 @@
};
};
ThreadResponseView
.
prototype
.
initialize
=
function
(
options
)
{
ThreadResponseView
.
prototype
.
initialize
=
function
(
options
)
{
this
.
startHeader
=
options
.
startHeader
;
this
.
collapseComments
=
options
.
collapseComments
;
this
.
collapseComments
=
options
.
collapseComments
;
this
.
createShowView
();
this
.
createShowView
();
this
.
readOnly
=
$
(
'.discussion-module'
).
data
(
'read-only'
);
this
.
readOnly
=
$
(
'.discussion-module'
).
data
(
'read-only'
);
...
@@ -155,7 +156,8 @@
...
@@ -155,7 +156,8 @@
self
=
this
;
self
=
this
;
comment
.
set
(
'thread'
,
this
.
model
.
get
(
'thread'
));
comment
.
set
(
'thread'
,
this
.
model
.
get
(
'thread'
));
view
=
new
ResponseCommentView
({
view
=
new
ResponseCommentView
({
model
:
comment
model
:
comment
,
startHeader
:
this
.
startHeader
});
});
view
.
render
();
view
.
render
();
if
(
this
.
readOnly
)
{
if
(
this
.
readOnly
)
{
...
@@ -246,7 +248,8 @@
...
@@ -246,7 +248,8 @@
this
.
editView
.
model
=
this
.
model
;
this
.
editView
.
model
=
this
.
model
;
}
else
{
}
else
{
this
.
editView
=
new
ThreadResponseEditView
({
this
.
editView
=
new
ThreadResponseEditView
({
model
:
this
.
model
model
:
this
.
model
,
startHeader
:
this
.
startHeader
});
});
this
.
editView
.
bind
(
'response:update'
,
this
.
update
);
this
.
editView
.
bind
(
'response:update'
,
this
.
update
);
return
this
.
editView
.
bind
(
'response:cancel_edit'
,
this
.
cancelEdit
);
return
this
.
editView
.
bind
(
'response:cancel_edit'
,
this
.
cancelEdit
);
...
...
common/static/common/templates/components/paging-header.underscore
View file @
91fce2a9
<% if (!_.isUndefined(srInfo)) { %>
<% if (!_.isUndefined(srInfo)) { %>
<h
2 class="sr" id="<%- srInfo.id %>"><%- srInfo.text %></h2
>
<h
3 class="sr" id="<%- srInfo.id %>"><%- srInfo.text %></h3
>
<% } %>
<% } %>
<div class="search-tools listing-tools">
<div class="search-tools listing-tools">
<span class="search-count listing-count">
<span class="search-count listing-count">
...
...
common/static/common/templates/discussion/new-post.underscore
View file @
91fce2a9
<form class="forum-new-post-form">
<form class="forum-new-post-form">
<h2 class="thread-title"><%- gettext("Add a Post") %></h2>
<h<%- startHeader %> class="thread-title"><%- gettext("Add a Post") %></h<%- startHeader %>>
<% if (mode === 'inline') { %>
<% if (mode === 'inline') { %>
<button class="btn-default add-post-cancel">
<button class="btn-default add-post-cancel">
<span class="sr"><%- gettext('Cancel') %></span>
<span class="sr"><%- gettext('Cancel') %></span>
...
...
common/static/common/templates/discussion/response-comment-edit.underscore
View file @
91fce2a9
<div class="edit-post-form" id="comment_<%- id %>">
<div class="edit-post-form" id="comment_<%- id %>">
<h
1><%- gettext("Editing comment") %></h1
>
<h
<%- startHeader %> ><%- gettext("Editing comment") %></h<%- startHeader%>
>
<ul class="edit-comment-form-errors"></ul>
<ul class="edit-comment-form-errors"></ul>
<div class="form-row">
<div class="form-row">
<div class="edit-comment-body" name="body" data-id="<%- id %>"><%- body %></div>
<div class="edit-comment-body" name="body" data-id="<%- id %>"><%- body %></div>
...
...
common/static/common/templates/discussion/thread-edit.underscore
View file @
91fce2a9
<h
2 class="thread-title"><%- gettext("Editing post") %></h2
>
<h
<%- startHeader%> class="thread-title"><%- gettext("Editing post") %></h<%- startHeader%>
>
<ul class="post-errors"></ul>
<ul class="post-errors"></ul>
<div class="forum-edit-post-form-wrapper"></div>
<div class="forum-edit-post-form-wrapper"></div>
<div class="post-field">
<div class="post-field">
...
...
common/static/common/templates/discussion/thread-response-edit.underscore
View file @
91fce2a9
<div class="edit-post-form">
<div class="edit-post-form">
<h
1><%- gettext("Editing response") %></h1
>
<h
<%- startHeader %>><%- gettext("Editing response") %></h<%- startHeader %>
>
<ul class="edit-post-form-errors"></ul>
<ul class="edit-post-form-errors"></ul>
<div class="form-row">
<div class="form-row">
<div class="edit-post-body" name="body" data-id="<%- id %>"><%- body %></div>
<div class="edit-post-body" name="body" data-id="<%- id %>"><%- body %></div>
...
...
common/static/common/templates/discussion/thread-show.underscore
View file @
91fce2a9
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
</div>
</div>
<% } %>
<% } %>
<div class="post-header-content">
<div class="post-header-content">
<h
2 class="post-title"><%- title %></h2
>
<h
<%- startHeader %> class="post-title"><%- title %></h<%- startHeader%>
>
<p class="posted-details">
<p class="posted-details">
<%
<%
var timeAgoHtml = interpolate(
var timeAgoHtml = interpolate(
...
...
common/static/common/templates/discussion/thread.underscore
View file @
91fce2a9
...
@@ -24,7 +24,8 @@
...
@@ -24,7 +24,8 @@
</div>
</div>
<% if (can_create_comment && !readOnly) { %>
<% if (can_create_comment && !readOnly) { %>
<form class="discussion-reply-new" data-id="<%- id %>">
<form class="discussion-reply-new" data-id="<%- id %>">
<h3><%- gettext("Add a response:") %></h3>
<h<%- startHeader %> class="add-response"><%- gettext("Add a response:") %></h<%- startHeader %> >
<ul class="discussion-errors"></ul>
<ul class="discussion-errors"></ul>
<div class="reply-body" data-id="<%- id %>"></div>
<div class="reply-body" data-id="<%- id %>"></div>
<div class="reply-post-control">
<div class="reply-post-control">
...
...
lms/djangoapps/discussion/static/discussion/js/discussion_board_factory.js
View file @
91fce2a9
...
@@ -55,7 +55,8 @@
...
@@ -55,7 +55,8 @@
el
:
$
(
'.new-post-article'
),
el
:
$
(
'.new-post-article'
),
collection
:
discussion
,
collection
:
discussion
,
course_settings
:
courseSettings
,
course_settings
:
courseSettings
,
mode
:
'tab'
mode
:
'tab'
,
startHeader
:
2
});
});
newPostView
.
render
();
newPostView
.
render
();
...
...
lms/djangoapps/discussion/static/discussion/js/discussion_router.js
View file @
91fce2a9
...
@@ -23,6 +23,12 @@
...
@@ -23,6 +23,12 @@
this
.
courseSettings
=
options
.
courseSettings
;
this
.
courseSettings
=
options
.
courseSettings
;
this
.
discussionBoardView
=
options
.
discussionBoardView
;
this
.
discussionBoardView
=
options
.
discussionBoardView
;
this
.
newPostView
=
options
.
newPostView
;
this
.
newPostView
=
options
.
newPostView
;
if
(
options
.
startHeader
!==
undefined
)
{
this
.
startHeader
=
options
.
startHeader
;
}
else
{
this
.
startHeader
=
2
;
// Start the header levels at H<startHeader>
}
},
},
start
:
function
()
{
start
:
function
()
{
...
@@ -95,6 +101,7 @@
...
@@ -95,6 +101,7 @@
el
:
$
(
'.forum-content'
),
el
:
$
(
'.forum-content'
),
model
:
this
.
thread
,
model
:
this
.
thread
,
mode
:
'tab'
,
mode
:
'tab'
,
startHeader
:
this
.
startHeader
,
courseSettings
:
this
.
courseSettings
courseSettings
:
this
.
courseSettings
});
});
this
.
main
.
render
();
this
.
main
.
render
();
...
...
lms/djangoapps/teams/static/teams/js/views/team_discussion.js
View file @
91fce2a9
...
@@ -15,7 +15,8 @@
...
@@ -15,7 +15,8 @@
var
discussionInlineView
=
new
DiscussionInlineView
({
var
discussionInlineView
=
new
DiscussionInlineView
({
el
:
this
.
$el
,
el
:
this
.
$el
,
showByDefault
:
true
,
showByDefault
:
true
,
readOnly
:
this
.
readOnly
readOnly
:
this
.
readOnly
,
startHeader
:
3
});
});
discussionInlineView
.
render
();
discussionInlineView
.
render
();
return
this
;
return
this
;
...
...
lms/djangoapps/teams/static/teams/templates/team-profile.underscore
View file @
91fce2a9
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
</div>
</div>
<div class="page-content-secondary">
<div class="page-content-secondary">
<h
4 class="team-detail-header"><%- gettext("Team Details") %></h4
>
<h
3 class="team-detail-header"><%- gettext("Team Details") %></h3
>
<% if (isMember) { %>
<% if (isMember) { %>
<div class="team-user-membership-status">
<div class="team-user-membership-status">
<p><%- gettext("You are a member of this team.") %></p>
<p><%- gettext("You are a member of this team.") %></p>
...
...
lms/static/sass/base/_headings.scss
View file @
91fce2a9
...
@@ -115,17 +115,12 @@ $headings-base-color: $gray-d2;
...
@@ -115,17 +115,12 @@ $headings-base-color: $gray-d2;
.xblock
.xblock
{
.xblock
.xblock
{
h
3
{
h
2
{
@extend
%hd-2
;
@extend
%hd-2
;
font-weight
:
$headings-font-weight-bold
;
font-weight
:
$headings-font-weight-bold
;
// override external modules and xblocks that use inline CSS
// override external modules and xblocks that use inline CSS
text-transform
:
initial
;
text-transform
:
initial
;
&
.unit-title
{
margin-bottom
:
0
;
font-size
:
1
.5em
;
}
&
.discussion-module-title
{
&
.discussion-module-title
{
margin-bottom
:
0
;
margin-bottom
:
0
;
display
:
inline-block
;
display
:
inline-block
;
...
...
lms/static/sass/course/courseware/_courseware.scss
View file @
91fce2a9
...
@@ -446,8 +446,6 @@ html.video-fullscreen {
...
@@ -446,8 +446,6 @@ html.video-fullscreen {
}
}
h2
{
h2
{
@include
float
(
right
);
@include
text-align
(
right
);
@include
border-right
(
0
);
@include
border-right
(
0
);
@include
padding-right
(
0
);
@include
padding-right
(
0
);
margin
:
12px
0
0
;
margin
:
12px
0
0
;
...
...
lms/templates/components/header/header.underscore
View file @
91fce2a9
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
<% }) %>
<% }) %>
</nav>
</nav>
<% } %>
<% } %>
<h
3 class="hd hd-2 page-title"><%- title %></h3
>
<h
2 class="hd hd-2 page-title"><%- title %></h2
>
<p class="page-description"><%- description %></p>
<p class="page-description"><%- description %></p>
</div>
</div>
<div class="page-header-secondary"></div>
<div class="page-header-secondary"></div>
...
...
lms/templates/discussion/_discussion_inline.html
View file @
91fce2a9
...
@@ -14,7 +14,7 @@ from openedx.core.djangolib.js_utils import js_escaped_string
...
@@ -14,7 +14,7 @@ from openedx.core.djangolib.js_utils import js_escaped_string
data-user-create-subcomment=
"${json_dumps(can_create_subcomment)}"
data-user-create-subcomment=
"${json_dumps(can_create_subcomment)}"
data-read-only=
"${'false' if can_create_thread else 'true'}"
>
data-read-only=
"${'false' if can_create_thread else 'true'}"
>
<div
class=
"discussion-module-header"
>
<div
class=
"discussion-module-header"
>
<h3
class=
"discussion-module-title"
>
${_(display_name)}
</h3>
<h3
class=
"
hd hd-3
discussion-module-title"
>
${_(display_name)}
</h3>
<div
class=
"inline-discussion-topic"
><span
class=
"inline-discussion-topic-title"
>
${_("Topic:")}
</span>
${discussion_category} / ${discussion_target}
</div>
<div
class=
"inline-discussion-topic"
><span
class=
"inline-discussion-topic-title"
>
${_("Topic:")}
</span>
${discussion_category} / ${discussion_target}
</div>
</div>
</div>
<button
class=
"discussion-show btn"
data-discussion-id=
"${discussion_id}"
>
<button
class=
"discussion-show btn"
data-discussion-id=
"${discussion_id}"
>
...
...
lms/templates/lti.html
View file @
91fce2a9
...
@@ -3,7 +3,7 @@ import json
...
@@ -3,7 +3,7 @@ import json
from
django
.
utils
.
translation
import
ugettext
as
_
from
django
.
utils
.
translation
import
ugettext
as
_
%
>
%
>
<h3
class=
"hd hd-
2
problem-header"
>
<h3
class=
"hd hd-
3
problem-header"
>
## Translators: "External resource" means that this learning module is hosted on a platform external to the edX LMS
## Translators: "External resource" means that this learning module is hosted on a platform external to the edX LMS
${display_name} (${_('External resource')})
${display_name} (${_('External resource')})
</h3>
</h3>
...
...
lms/templates/problem.html
View file @
91fce2a9
...
@@ -5,7 +5,7 @@ from openedx.core.djangolib.markup import HTML
...
@@ -5,7 +5,7 @@ from openedx.core.djangolib.markup import HTML
%
>
%
>
<
%
namespace
name=
'static'
file=
'static_content.html'
/>
<
%
namespace
name=
'static'
file=
'static_content.html'
/>
<h3
class=
"hd hd-
2
problem-header"
id=
"${ short_id }-problem-title"
aria-describedby=
"${ id }-problem-progress"
tabindex=
"-1"
>
<h3
class=
"hd hd-
3
problem-header"
id=
"${ short_id }-problem-title"
aria-describedby=
"${ id }-problem-progress"
tabindex=
"-1"
>
${ problem['name'] }
${ problem['name'] }
</h3>
</h3>
...
...
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