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
1c376faf
Commit
1c376faf
authored
Jun 05, 2012
by
ichuang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix dogfood.views and courseware.capa.responsetypes from merge; fix main.html
parent
187f102c
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
13 deletions
+14
-13
djangoapps/courseware/capa/responsetypes.py
+1
-1
lib/dogfood/views.py
+1
-1
templates/main.html
+12
-11
No files found.
djangoapps/courseware/capa/responsetypes.py
View file @
1c376faf
...
@@ -465,7 +465,7 @@ class ExternalResponse(GenericResponse):
...
@@ -465,7 +465,7 @@ class ExternalResponse(GenericResponse):
Typically used by coding problems.
Typically used by coding problems.
'''
'''
snippets
=
[{
'snippet'
,
'''<externalresponse tests="repeat:10,generate">
snippets
=
[{
'snippet'
:
'''<externalresponse tests="repeat:10,generate">
<textbox rows="10" cols="70" mode="python"/>
<textbox rows="10" cols="70" mode="python"/>
<answer><![CDATA[
<answer><![CDATA[
initial_display = """
initial_display = """
...
...
lib/dogfood/views.py
View file @
1c376faf
...
@@ -26,7 +26,7 @@ import track.views
...
@@ -26,7 +26,7 @@ import track.views
from
lxml
import
etree
from
lxml
import
etree
from
courseware.module_render
import
render_module
,
make_track_function
,
I4xSystem
,
get_state_from_module_object_preload
from
courseware.module_render
import
make_track_function
,
I4xSystem
from
courseware.models
import
StudentModule
from
courseware.models
import
StudentModule
from
multicourse
import
multicourse_settings
from
multicourse
import
multicourse_settings
from
student.models
import
UserProfile
from
student.models
import
UserProfile
...
...
templates/main.html
View file @
1c376faf
...
@@ -6,13 +6,10 @@
...
@@ -6,13 +6,10 @@
<link
rel=
"stylesheet"
href=
"${static.url('js/jquery.treeview.css')}"
type=
"text/css"
media=
"all"
/>
<link
rel=
"stylesheet"
href=
"${static.url('js/jquery.treeview.css')}"
type=
"text/css"
media=
"all"
/>
## these two lines need to run django-pipeline / sass
% if settings.MITX_FEATURES['USE_DJANGO_PIPELINE']:
% if settings.MITX_FEATURES['USE_DJANGO_PIPELINE']:
<
%
static:css
group=
'application'
/>
<
%
static:css
group=
'application'
/>
<
%
static:js
group=
'application'
/>
% endif
% endif
## use this in case django-pipeline is broken
% if not settings.MITX_FEATURES['USE_DJANGO_PIPELINE']:
% if not settings.MITX_FEATURES['USE_DJANGO_PIPELINE']:
<link
rel=
"stylesheet"
href=
"/static/sass/application.css"
type=
"text/css"
media=
"all"
/ >
<link
rel=
"stylesheet"
href=
"/static/sass/application.css"
type=
"text/css"
media=
"all"
/ >
% endif
% endif
...
@@ -20,6 +17,18 @@
...
@@ -20,6 +17,18 @@
<script
type=
"text/javascript"
src=
"${static.url('js/jquery-1.6.2.min.js')}"
></script>
<script
type=
"text/javascript"
src=
"${static.url('js/jquery-1.6.2.min.js')}"
></script>
<script
type=
"text/javascript"
src=
"${static.url('js/jquery-ui-1.8.16.custom.min.js')}"
></script>
<script
type=
"text/javascript"
src=
"${static.url('js/jquery-ui-1.8.16.custom.min.js')}"
></script>
<script
type=
"text/javascript"
src=
"${static.url('js/swfobject/swfobject.js')}"
></script>
<script
type=
"text/javascript"
src=
"${static.url('js/swfobject/swfobject.js')}"
></script>
% if settings.MITX_FEATURES['USE_DJANGO_PIPELINE']:
<
%
static:js
group=
'application'
/>
% endif
% if not settings.MITX_FEATURES['USE_DJANGO_PIPELINE']:
% for jsfn in [ '/static/%s' % x.replace('.coffee','.js') for x in settings.PIPELINE_JS['application']['source_filenames'] ]:
<script
type=
"text/javascript"
src=
"${jsfn}"
></script>
% endfor
% endif
## codemirror
<link
rel=
"stylesheet"
href=
"/static/css/codemirror.css"
type=
"text/css"
media=
"all"
/>
<link
rel=
"stylesheet"
href=
"/static/css/codemirror.css"
type=
"text/css"
media=
"all"
/>
<script
type=
"text/javascript"
src=
"${ settings.LIB_URL }codemirror-compressed.js"
></script>
<script
type=
"text/javascript"
src=
"${ settings.LIB_URL }codemirror-compressed.js"
></script>
...
@@ -28,14 +37,6 @@
...
@@ -28,14 +37,6 @@
##
<script
type=
"text/javascript"
src=
"/static/js/CodeMirror-2.25/mode/xml/xml.js"
></script>
##
<script
type=
"text/javascript"
src=
"/static/js/CodeMirror-2.25/mode/xml/xml.js"
></script>
##
<script
type=
"text/javascript"
src=
"/static/js/CodeMirror-2.25/mode/python/python.js"
></script>
##
<script
type=
"text/javascript"
src=
"/static/js/CodeMirror-2.25/mode/python/python.js"
></script>
## use these four lines if django-pipeline is broken
% if not settings.MITX_FEATURES['USE_DJANGO_PIPELINE']:
<script
type=
"text/javascript"
src=
"/static/coffee/src/courseware.js"
></script>
<script
type=
"text/javascript"
src=
"/static/coffee/src/feedback_form.js"
></script>
<script
type=
"text/javascript"
src=
"/static/coffee/src/calculator.js"
></script>
<script
type=
"text/javascript"
src=
"/static/coffee/src/main.js"
></script>
% endif
## image input: for clicking on images (see imageinput.html)
## image input: for clicking on images (see imageinput.html)
<script
type=
"text/javascript"
src=
"/static/js/imageinput.js"
></script>
<script
type=
"text/javascript"
src=
"/static/js/imageinput.js"
></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