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
8eae59d4
Commit
8eae59d4
authored
Jun 23, 2014
by
Jason Bau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make a bunch customizability in LTI modules
parent
6f2af37b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
3 deletions
+31
-3
common/lib/xmodule/xmodule/lti_module.py
+18
-0
lms/static/sass/course/courseware/_courseware.scss
+5
-0
lms/templates/lti.html
+8
-3
No files found.
common/lib/xmodule/xmodule/lti_module.py
View file @
8eae59d4
...
...
@@ -191,6 +191,21 @@ class LTIFields(object):
default
=
False
,
scope
=
Scope
.
settings
)
title_postscript
=
String
(
display_name
=
"Post-script to component title"
,
default
=
"(External Resource)"
,
scope
=
Scope
.
settings
)
grader_feedback_label
=
String
(
display_name
=
"String label for grader feedback"
,
default
=
"Feedback on your work from the grader:"
,
scope
=
Scope
.
settings
)
instruction_text
=
String
(
display_name
=
"Additional instruction text for component"
,
default
=
""
,
scope
=
Scope
.
settings
)
class
LTIModule
(
LTIFields
,
LTI20ModuleMixin
,
XModule
):
...
...
@@ -370,6 +385,9 @@ class LTIModule(LTIFields, LTI20ModuleMixin, XModule):
'weight'
:
self
.
weight
,
'module_score'
:
self
.
module_score
,
'comment'
:
sanitized_comment
,
'title_postscript'
:
self
.
title_postscript
,
'grader_feedback_label'
:
self
.
grader_feedback_label
,
'instruction_text'
:
self
.
instruction_text
,
}
def
get_html
(
self
):
...
...
lms/static/sass/course/courseware/_courseware.scss
View file @
8eae59d4
...
...
@@ -327,3 +327,7 @@ section.foldit {
border-radius
:
5px
;
font-weight
:
bold
;
}
h4
.problem-feedback-label
{
margin-top
:
1em
;
}
\ No newline at end of file
lms/templates/lti.html
View file @
8eae59d4
...
...
@@ -3,7 +3,7 @@
<h2
class=
"problem-header"
>
## Translators: "External resource" means that this learning module is hosted on a platform external to the edX LMS
${display_name}
(${_('External resource')})
${display_name}
${title_postscript}
</h2>
% if has_score and weight:
...
...
@@ -22,7 +22,10 @@
id=
"${element_id}"
class=
"${element_class}"
>
<div
class=
"problem-instruction"
>
${instruction_text}
</div>
</div>
% if launch_url and launch_url != 'http://www.example.com' and not hide_launch:
% if open_in_a_new_page:
<div
class=
"wrapper-lti-link"
>
...
...
@@ -46,7 +49,9 @@
%endif
% if has_score and comment:
<h4
class=
"problem-feedback-label"
>
${_("Feedback on your work from the grader:")}
</h4>
% if grader_feedback_label:
<h4
class=
"problem-feedback-label"
>
${grader_feedback_label}
</h4>
% endif
<div
class=
"problem-feedback"
>
## sanitized with bleach in view
${comment}
...
...
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