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
85e7e70f
Commit
85e7e70f
authored
Aug 30, 2016
by
Muhammad Ammar
Committed by
GitHub
Aug 30, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #13347 from edx/ammar/fix-safe-linter-violations
fix safe linter violations
parents
fea40ce1
ddecb5ad
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
12 additions
and
7 deletions
+12
-7
common/lib/capa/capa/templates/annotationinput.html
+2
-2
common/lib/capa/capa/templates/choicegroup.html
+2
-1
common/lib/capa/capa/templates/drag_and_drop_input.html
+2
-1
common/lib/capa/capa/templates/filesubmission.html
+2
-1
common/lib/capa/capa/templates/optioninput.html
+2
-1
common/lib/capa/capa/templates/vsepr_input.html
+2
-1
No files found.
common/lib/capa/capa/templates/annotationinput.html
View file @
85e7e70f
<
%!
from
openedx
.
core
.
djangolib
.
markup
import
HTML
%
>
<form
class=
"annotation-input"
>
<form
class=
"annotation-input"
>
<div
class=
"script_placeholder"
data-src=
"${STATIC_URL}js/capa/annotationinput.js"
/>
<div
class=
"script_placeholder"
data-src=
"${STATIC_URL}js/capa/annotationinput.js"
/>
...
@@ -59,6 +60,5 @@
...
@@ -59,6 +60,5 @@
</form>
</form>
% if msg:
% if msg:
<span
class=
"message"
>
${
msg|n
}
</span>
<span
class=
"message"
>
${
HTML(msg)
}
</span>
% endif
% endif
common/lib/capa/capa/templates/choicegroup.html
View file @
85e7e70f
<
%!
from
openedx
.
core
.
djangolib
.
markup
import
HTML
%
>
<
%
<
%
def
is_radio_input
(
choice_id
)
:
def
is_radio_input
(
choice_id
)
:
return
input_type =
=
'
radio
'
and
((
isinstance
(
value
,
basestring
)
and
(
choice_id =
=
value
))
or
(
return
input_type =
=
'
radio
'
and
((
isinstance
(
value
,
basestring
)
and
(
choice_id =
=
value
))
or
(
...
@@ -73,6 +74,6 @@
...
@@ -73,6 +74,6 @@
<div
class=
"capa_alert"
>
${submitted_message}
</div>
<div
class=
"capa_alert"
>
${submitted_message}
</div>
%endif
%endif
% if msg:
% if msg:
<span
class=
"message"
>
${
msg|n
}
</span>
<span
class=
"message"
>
${
HTML(msg)
}
</span>
% endif
% endif
</form>
</form>
common/lib/capa/capa/templates/drag_and_drop_input.html
View file @
85e7e70f
<
%!
from
openedx
.
core
.
djangolib
.
markup
import
HTML
%
>
<div
id=
"inputtype_${id}"
class=
"capa_inputtype"
>
<div
id=
"inputtype_${id}"
class=
"capa_inputtype"
>
<div
class=
"drag_and_drop_problem_div"
id=
"drag_and_drop_div_${id}"
<div
class=
"drag_and_drop_problem_div"
id=
"drag_and_drop_div_${id}"
data-plain-id=
"${id}"
>
data-plain-id=
"${id}"
>
...
@@ -23,7 +24,7 @@
...
@@ -23,7 +24,7 @@
<p
id=
"answer_${id}"
class=
"answer"
></p>
<p
id=
"answer_${id}"
class=
"answer"
></p>
% if msg:
% if msg:
<span
class=
"message"
>
${
msg|n
}
</span>
<span
class=
"message"
>
${
HTML(msg)
}
</span>
% endif
% endif
% if status in ['unsubmitted', 'correct', 'incorrect', 'partially-correct', 'incomplete']:
% if status in ['unsubmitted', 'correct', 'incorrect', 'partially-correct', 'incomplete']:
...
...
common/lib/capa/capa/templates/filesubmission.html
View file @
85e7e70f
<
%!
from
openedx
.
core
.
djangolib
.
markup
import
HTML
%
>
<section
id=
"filesubmission_${id}"
class=
"filesubmission"
>
<section
id=
"filesubmission_${id}"
class=
"filesubmission"
>
<div
class=
"grader-status file"
>
<div
class=
"grader-status file"
>
...
@@ -9,5 +10,5 @@
...
@@ -9,5 +10,5 @@
<input
type=
"file"
name=
"input_${id}"
id=
"input_${id}"
value=
"${value}"
multiple=
"multiple"
data-required_files=
"${required_files|h}"
data-allowed_files=
"${allowed_files|h}"
aria-label=
"${response_data['label']}"
/>
<input
type=
"file"
name=
"input_${id}"
id=
"input_${id}"
value=
"${value}"
multiple=
"multiple"
data-required_files=
"${required_files|h}"
data-allowed_files=
"${allowed_files|h}"
aria-label=
"${response_data['label']}"
/>
</div>
</div>
<div
class=
"message"
>
${
msg|n
}
</div>
<div
class=
"message"
>
${
HTML(msg)
}
</div>
</section>
</section>
common/lib/capa/capa/templates/optioninput.html
View file @
85e7e70f
<
%!
from
openedx
.
core
.
djangolib
.
markup
import
HTML
%
>
<
%
doinline =
"inline"
if
inline
else
""
%
>
<
%
doinline =
"inline"
if
inline
else
""
%
>
<form
class=
"inputtype option-input ${doinline}"
>
<form
class=
"inputtype option-input ${doinline}"
>
...
@@ -29,6 +30,6 @@
...
@@ -29,6 +30,6 @@
</div>
</div>
<p
class=
"answer"
id=
"answer_${id}"
></p>
<p
class=
"answer"
id=
"answer_${id}"
></p>
% if msg:
% if msg:
<span
class=
"message"
>
${
msg|n
}
</span>
<span
class=
"message"
>
${
HTML(msg)
}
</span>
% endif
% endif
</form>
</form>
common/lib/capa/capa/templates/vsepr_input.html
View file @
85e7e70f
<
%!
from
openedx
.
core
.
djangolib
.
markup
import
HTML
%
>
<section
id=
"inputtype_${id}"
class=
"capa_inputtype"
>
<section
id=
"inputtype_${id}"
class=
"capa_inputtype"
>
<table><tr><td
height=
'600'
>
<table><tr><td
height=
'600'
>
<div
id=
"vsepr_div_${id}"
style=
"position:relative;"
data-molecules=
"${molecules}"
data-geometries=
"${geometries}"
>
<div
id=
"vsepr_div_${id}"
style=
"position:relative;"
data-molecules=
"${molecules}"
data-geometries=
"${geometries}"
>
...
@@ -26,7 +27,7 @@
...
@@ -26,7 +27,7 @@
<p
id=
"answer_${id}"
class=
"answer"
></p>
<p
id=
"answer_${id}"
class=
"answer"
></p>
% if msg:
% if msg:
<span
class=
"message"
>
${
msg|n
}
</span>
<span
class=
"message"
>
${
HTML(msg)
}
</span>
% endif
% endif
% if status in ['unsubmitted', 'correct', 'incorrect', 'partially-correct', 'incomplete']:
% if status in ['unsubmitted', 'correct', 'incorrect', 'partially-correct', 'incomplete']:
</div>
</div>
...
...
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