From b78508a1f90a0c7ff37666fb14ff83393fffb78c Mon Sep 17 00:00:00 2001 From: Andy Armstrong Date: Wed, 9 Apr 2014 13:33:01 -0400 Subject: [PATCH] Indicate LaTex problems with a specific class on the editor --- cms/templates/widgets/problem-edit.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cms/templates/widgets/problem-edit.html b/cms/templates/widgets/problem-edit.html index 6611a04ebf..5c3190d0e0 100644 --- a/cms/templates/widgets/problem-edit.html +++ b/cms/templates/widgets/problem-edit.html @@ -1,7 +1,13 @@ <%! from django.utils.translation import ugettext as _ %> <%namespace name='static' file='../static_content.html'/> +<% isLaTexProblem='source_code' in editable_metadata_fields and editable_metadata_fields['source_code']['explicitly_set'] and enable_latex_compiler %> + +% if isLaTexProblem: +
+% else:
+% endif
%if enable_markdown: