Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-ora2
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-ora2
Commits
7285887e
Commit
7285887e
authored
Feb 25, 2014
by
Will Daly
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #43 from edx/will/fix-template-path
Will/fix template path
parents
c80522da
9f71da30
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
6 additions
and
6 deletions
+6
-6
apps/openassessment/templates/oa_base.html
+1
-1
apps/openassessment/templates/oa_grade.html
+0
-0
apps/openassessment/templates/oa_peer_assessment.html
+0
-0
apps/openassessment/templates/oa_response.html
+0
-0
apps/openassessment/templates/oa_self_assessment.html
+0
-0
apps/openassessment/templates/t-base.html
+0
-0
apps/openassessment/templates/t-grade.html
+0
-0
apps/openassessment/templates/t-messages.html
+0
-0
apps/openassessment/templates/t-peer-assessment.html
+0
-0
apps/openassessment/templates/t-response.html
+0
-0
apps/openassessment/templates/t-self-assessment.html
+0
-0
apps/openassessment/xblock/openassessmentblock.py
+1
-2
apps/openassessment/xblock/peer_assessment_mixin.py
+1
-1
apps/openassessment/xblock/self_assessment_mixin.py
+1
-1
apps/openassessment/xblock/submission_mixin.py
+1
-1
settings/base.py
+1
-0
No files found.
apps/openassessment/
xblock/static/html
/oa_base.html
→
apps/openassessment/
templates
/oa_base.html
View file @
7285887e
...
...
@@ -75,6 +75,6 @@
</ol>
<!-- STATUS: problem grade -->
{% include "
static/html/
oa_grade.html" %}
{% include "oa_grade.html" %}
</div>
</div>
apps/openassessment/
xblock/static/html
/oa_grade.html
→
apps/openassessment/
templates
/oa_grade.html
View file @
7285887e
File moved
apps/openassessment/
xblock/static/html
/oa_peer_assessment.html
→
apps/openassessment/
templates
/oa_peer_assessment.html
View file @
7285887e
File moved
apps/openassessment/
xblock/static/html
/oa_response.html
→
apps/openassessment/
templates
/oa_response.html
View file @
7285887e
File moved
apps/openassessment/
xblock/static/html
/oa_self_assessment.html
→
apps/openassessment/
templates
/oa_self_assessment.html
View file @
7285887e
File moved
apps/openassessment/
xblock/static/html
/t-base.html
→
apps/openassessment/
templates
/t-base.html
View file @
7285887e
File moved
apps/openassessment/
xblock/static/html
/t-grade.html
→
apps/openassessment/
templates
/t-grade.html
View file @
7285887e
File moved
apps/openassessment/
xblock/static/html
/t-messages.html
→
apps/openassessment/
templates
/t-messages.html
View file @
7285887e
File moved
apps/openassessment/
xblock/static/html
/t-peer-assessment.html
→
apps/openassessment/
templates
/t-peer-assessment.html
View file @
7285887e
File moved
apps/openassessment/
xblock/static/html
/t-response.html
→
apps/openassessment/
templates
/t-response.html
View file @
7285887e
File moved
apps/openassessment/
xblock/static/html
/t-self-assessment.html
→
apps/openassessment/
templates
/t-self-assessment.html
View file @
7285887e
File moved
apps/openassessment/xblock/openassessmentblock.py
View file @
7285887e
...
...
@@ -270,7 +270,7 @@ class OpenAssessmentBlock(XBlock, SubmissionMixin, PeerAssessmentMixin, SelfAsse
"grade_state"
:
grade_state
,
}
template
=
get_template
(
"
static/html/
oa_base.html"
)
template
=
get_template
(
"oa_base.html"
)
context
=
Context
(
context_dict
)
frag
=
Fragment
(
template
.
render
(
context
))
frag
.
add_css
(
load
(
"static/css/openassessment.css"
))
...
...
@@ -372,7 +372,6 @@ class OpenAssessmentBlock(XBlock, SubmissionMixin, PeerAssessmentMixin, SelfAsse
(Response): A Response Object with the generated HTML fragment. This
is intended for AJAX calls to load dynamically into a larger
document.
"""
if
not
context_dict
:
context_dict
=
{}
...
...
apps/openassessment/xblock/peer_assessment_mixin.py
View file @
7285887e
...
...
@@ -71,7 +71,7 @@ class PeerAssessmentMixin(object):
if
assessment
:
peer_sub
=
self
.
get_peer_submission
(
self
.
get_student_item_dict
(),
assessment
)
context_dict
=
{
"peer_submission"
:
peer_sub
}
return
self
.
render_assessment
(
'
static/html/
oa_peer_assessment.html'
,
context_dict
)
return
self
.
render_assessment
(
'oa_peer_assessment.html'
,
context_dict
)
def
get_peer_submission
(
self
,
student_item_dict
,
assessment
):
peer_submission
=
False
...
...
apps/openassessment/xblock/self_assessment_mixin.py
View file @
7285887e
...
...
@@ -16,5 +16,5 @@ class SelfAssessmentMixin(object):
@XBlock.handler
def
render_self_assessment
(
self
,
data
,
suffix
=
''
):
return
self
.
render_assessment
(
'
static/html/
oa_self_assessment.html'
)
return
self
.
render_assessment
(
'oa_self_assessment.html'
)
apps/openassessment/xblock/submission_mixin.py
View file @
7285887e
...
...
@@ -120,6 +120,6 @@ class SubmissionMixin(object):
Generates the submission HTML for the first section of an Open
Assessment XBlock. See OpenAssessmentBlock.render_assessment() for
more information on rendering XBlock sections.
"""
return
self
.
render_assessment
(
'static/html/oa_response.html'
)
return
self
.
render_assessment
(
'oa_response.html'
)
settings/base.py
View file @
7285887e
...
...
@@ -140,6 +140,7 @@ INSTALLED_APPS = (
# edx-tim apps
'submissions'
,
'openassessment.peer'
,
'openassessment'
,
)
# A sample logging configuration. The only tangible logging
...
...
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