Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
problem-builder
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
OpenEdx
problem-builder
Commits
9e864583
Commit
9e864583
authored
Sep 24, 2015
by
Tim Krones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Get rid of "runDetails not defined error".
parent
ef0812a6
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
71 additions
and
2 deletions
+71
-2
problem_builder/mentoring.py
+1
-1
problem_builder/public/js/mentoring_with_steps.js
+1
-1
problem_builder/templates/html/mentoring_review_templates.html
+69
-0
No files found.
problem_builder/mentoring.py
View file @
9e864583
...
@@ -1015,7 +1015,7 @@ class MentoringWithExplicitStepsBlock(BaseMentoringBlock, StudioContainerWithNes
...
@@ -1015,7 +1015,7 @@ class MentoringWithExplicitStepsBlock(BaseMentoringBlock, StudioContainerWithNes
fragment
.
add_javascript_url
(
self
.
runtime
.
local_resource_url
(
self
,
'public/js/mentoring_with_steps.js'
))
fragment
.
add_javascript_url
(
self
.
runtime
.
local_resource_url
(
self
,
'public/js/mentoring_with_steps.js'
))
fragment
.
add_resource
(
loader
.
load_unicode
(
'templates/html/mentoring_attempts.html'
),
"text/html"
)
fragment
.
add_resource
(
loader
.
load_unicode
(
'templates/html/mentoring_attempts.html'
),
"text/html"
)
fragment
.
add_resource
(
loader
.
load_unicode
(
'templates/html/mentoring_
assessment
_templates.html'
),
"text/html"
)
fragment
.
add_resource
(
loader
.
load_unicode
(
'templates/html/mentoring_
review
_templates.html'
),
"text/html"
)
self
.
include_theme_files
(
fragment
)
self
.
include_theme_files
(
fragment
)
...
...
problem_builder/public/js/mentoring_with_steps.js
View file @
9e864583
...
@@ -4,7 +4,7 @@ function MentoringWithStepsBlock(runtime, element) {
...
@@ -4,7 +4,7 @@ function MentoringWithStepsBlock(runtime, element) {
function
(
c
)
{
return
c
.
element
.
className
.
indexOf
(
'sb-step'
)
>
-
1
;
}
function
(
c
)
{
return
c
.
element
.
className
.
indexOf
(
'sb-step'
)
>
-
1
;
}
);
);
var
activeStep
=
$
(
'.mentoring'
,
element
).
data
(
'active-step'
);
var
activeStep
=
$
(
'.mentoring'
,
element
).
data
(
'active-step'
);
var
gradeTemplate
=
_
.
template
(
$
(
'#xblock-
grade
-template'
).
html
());
var
gradeTemplate
=
_
.
template
(
$
(
'#xblock-
review
-template'
).
html
());
var
reviewTipsTemplate
=
_
.
template
(
$
(
'#xblock-review-tips-template'
).
html
());
// Tips about specific questions the user got wrong
var
reviewTipsTemplate
=
_
.
template
(
$
(
'#xblock-review-tips-template'
).
html
());
// Tips about specific questions the user got wrong
var
attemptsTemplate
=
_
.
template
(
$
(
'#xblock-attempts-template'
).
html
());
var
attemptsTemplate
=
_
.
template
(
$
(
'#xblock-attempts-template'
).
html
());
var
reviewStep
,
checkmark
,
submitDOM
,
nextDOM
,
reviewDOM
,
tryAgainDOM
,
var
reviewStep
,
checkmark
,
submitDOM
,
nextDOM
,
reviewDOM
,
tryAgainDOM
,
...
...
problem_builder/templates/html/mentoring_review_templates.html
0 → 100644
View file @
9e864583
<script
type=
"text/template"
id=
"xblock-review-template"
>
<
div
class
=
"grade-result"
>
<
h2
>
<%=
_
.
template
(
gettext
(
"You scored {percent}% on this assessment."
),
{
percent
:
score
},
{
interpolate
:
/
\{(
.+
?)\}
/g
})
%>
<
/h2
>
<
hr
/>
<
span
class
=
"assessment-checkmark icon-2x checkmark-correct icon-ok fa fa-check"
><
/span
>
<
div
class
=
"results-section"
>
<
p
>
<%=
_
.
template
(
ngettext
(
"You answered 1 question correctly."
,
"You answered {number_correct} questions correctly."
,
correct_answer
),
{
number_correct
:
correct_answer
},
{
interpolate
:
/
\{(
.+
?)\}
/g
})
%>
<
/p
>
<
/div
>
<
div
class
=
"clear"
><
/div
>
<
span
class
=
"assessment-checkmark icon-2x checkmark-partially-correct icon-ok fa fa-check"
><
/span
>
<
div
class
=
"results-section"
>
<
p
>
<%=
_
.
template
(
ngettext
(
"You answered 1 question partially correctly."
,
"You answered {number_partially_correct} questions partially correctly."
,
partially_correct_answer
),
{
number_partially_correct
:
partially_correct_answer
},
{
interpolate
:
/
\{(
.+
?)\}
/g
})
%>
<
/p
>
<
/div
>
<
div
class
=
"clear"
><
/div
>
<
span
class
=
"assessment-checkmark icon-2x checkmark-incorrect icon-exclamation fa fa-exclamation"
><
/span
>
<
div
class
=
"results-section"
>
<
p
>
<%=
_
.
template
(
ngettext
(
"You answered 1 question incorrectly."
,
"You answered {number_incorrect} questions incorrectly."
,
incorrect_answer
),
{
number_incorrect
:
incorrect_answer
},
{
interpolate
:
/
\{(
.+
?)\}
/g
})
%>
<
/p
>
<
/div
>
<
div
class
=
"clear"
><
/div
>
<
hr
/>
<
/div
>
</script>
<!-- Template for extended feedback: Show extended feedback details when all attempts are used up. -->
<script
type=
"text/template"
id=
"xblock-review-questions-template"
>
<%
var
q
,
last_question
;
%>
<
ul
class
=
"review-list <%= label %>-list"
>
<%
for
(
var
question
in
questions
)
{{
q
=
questions
[
question
];
last_question
=
question
==
questions
.
length
-
1
;
%>
<
li
><
a
href
=
"#"
class
=
"question-link"
data
-
step
=
"<%= q.number %>"
><%=
_
.
template
(
gettext
(
"Question {number}"
),
{
number
:
q
.
number
},
{
interpolate
:
/
\{(
.+
?)\}
/g
})
%><
/a></
li
>
<%
}}
%>
<
/ul
>
</script>
<!-- Tips about specific questions the student got wrong. From pb-message[type=on-assessment-review-question] blocks -->
<script
type=
"text/template"
id=
"xblock-review-tips-template"
>
<
p
class
=
"review-tips-intro"
><%=
gettext
(
"You might consider reviewing the following items before your next assessment attempt:"
)
%><
/p
>
<
ul
class
=
"review-tips-list"
>
<%
for
(
var
tip_idx
in
tips
)
{{
%>
<
li
><%=
tips
[
tip_idx
]
%><
/li
>
<%
}}
%>
<
/ul
>
</script>
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