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
7682663e
Commit
7682663e
authored
Sep 15, 2012
by
Arjun Singh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make broken problem error a bit scarier and fix typo in message
parent
2c239f87
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
common/lib/xmodule/xmodule/capa_module.py
+4
-3
common/lib/xmodule/xmodule/css/capa/display.scss
+3
-3
No files found.
common/lib/xmodule/xmodule/capa_module.py
View file @
7682663e
...
...
@@ -257,14 +257,15 @@ class CapaModule(XModule):
# Prepend a scary warning to the student
warning
=
'<div class="capa_reset">'
\
'<h2>Warning: Problem reset to initial state!</h2>'
\
'Problem state was corruped by invalid submission. The submission consisted of:'
\
'<h2>Warning: The problem has been reset to its initial state!</h2>'
\
'The problem
\'
s state was corrupted by an invalid submission. '
\
'The submission consisted of:'
\
'<ul>'
for
student_answer
in
student_answers
.
values
():
if
student_answer
!=
''
:
warning
+=
'<li>'
+
cgi
.
escape
(
student_answer
)
+
'</li>'
warning
+=
'</ul>'
\
'If th
e problem
persists, please contact the course staff.'
\
'If th
is error
persists, please contact the course staff.'
\
'</div>'
html
=
warning
...
...
common/lib/xmodule/xmodule/css/capa/display.scss
View file @
7682663e
...
...
@@ -467,15 +467,15 @@ section.problem {
div
.capa_reset
{
padding
:
25px
;
border
:
1px
solid
#EBE8BF
;
border
:
1px
solid
$error-red
;
background-color
:
lighten
(
$error-red
,
25%
);
border-radius
:
3px
;
background
:
#FFFCDD
;
font-size
:
1em
;
margin-top
:
10px
;
margin-bottom
:
10px
;
}
.capa_reset
>
h2
{
color
:
#
FF
0000
;
color
:
#
AA
0000
;
}
.capa_reset
li
{
font-size
:
0
.9em
;
...
...
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