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
b3d0abbd
Commit
b3d0abbd
authored
Mar 01, 2013
by
Vik Paruchuri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Start to move around templates
parent
d186e5d1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
common/lib/xmodule/xmodule/open_ended_grading_classes/combined_open_ended_modulev1.py
+5
-2
lms/templates/combinedopenended/combined_open_ended.html
+0
-0
No files found.
common/lib/xmodule/xmodule/open_ended_grading_classes/combined_open_ended_modulev1.py
View file @
b3d0abbd
...
...
@@ -79,6 +79,9 @@ class CombinedOpenEndedV1Module():
INTERMEDIATE_DONE
=
'intermediate_done'
DONE
=
'done'
#Where the templates live for this problem
TEMPLATE_DIR
=
"combinedopenended"
def
__init__
(
self
,
system
,
location
,
definition
,
descriptor
,
instance_state
=
None
,
shared_state
=
None
,
metadata
=
None
,
static_data
=
None
,
**
kwargs
):
...
...
@@ -343,7 +346,7 @@ class CombinedOpenEndedV1Module():
Output: rendered html
"""
context
=
self
.
get_context
()
html
=
self
.
system
.
render_template
(
'
combined_open_ended.html'
,
context
)
html
=
self
.
system
.
render_template
(
'
{0}/combined_open_ended.html'
.
format
(
self
.
TEMPLATE_DIR
)
,
context
)
return
html
def
get_html_nonsystem
(
self
):
...
...
@@ -354,7 +357,7 @@ class CombinedOpenEndedV1Module():
Output: HTML rendered directly via Mako
"""
context
=
self
.
get_context
()
html
=
self
.
system
.
render_template
(
'
combined_open_ended.html'
,
context
)
html
=
self
.
system
.
render_template
(
'
{0}/combined_open_ended.html'
.
format
(
self
.
TEMPLATE_DIR
)
,
context
)
return
html
def
get_html_base
(
self
):
...
...
lms/templates/combined_open_ended.html
→
lms/templates/combined
openended/combined
_open_ended.html
View file @
b3d0abbd
File moved
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