From 61c4a1da3d6ce4ac71cd31859fd96f376a6a7117 Mon Sep 17 00:00:00 2001 From: ichuang Date: Tue, 5 Jun 2012 22:16:26 -0400 Subject: [PATCH] fix dogfood.views and courseware.capa.responsetypes from merge; fix main.html --- djangoapps/courseware/capa/responsetypes.py | 2 +- lib/dogfood/views.py | 2 +- templates/main.html | 23 +++++++++++---------- 3 files changed, 14 insertions(+), 13 deletions(-) diff --git a/djangoapps/courseware/capa/responsetypes.py b/djangoapps/courseware/capa/responsetypes.py index d0d66c37e2..8dff5fbda6 100644 --- a/djangoapps/courseware/capa/responsetypes.py +++ b/djangoapps/courseware/capa/responsetypes.py @@ -465,7 +465,7 @@ class ExternalResponse(GenericResponse): Typically used by coding problems. ''' - snippets = [{'snippet', ''' + snippets = [{'snippet': ''' -## these two lines need to run django-pipeline / sass % if settings.MITX_FEATURES['USE_DJANGO_PIPELINE']: <%static:css group='application'/> - <%static:js group='application'/> % endif -## use this in case django-pipeline is broken % if not settings.MITX_FEATURES['USE_DJANGO_PIPELINE']: % endif @@ -20,6 +17,18 @@ + +% 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'] ]: + + % endfor +% endif + +## codemirror @@ -28,14 +37,6 @@ ## ## -## use these four lines if django-pipeline is broken -% if not settings.MITX_FEATURES['USE_DJANGO_PIPELINE']: - - - - -% endif - ## image input: for clicking on images (see imageinput.html)