Merge pull request #627 from MITx/feature/kfiedler/problems

Style changes to problems
This commit is contained in:
kimth
2012-09-05 16:06:16 -07:00
7 changed files with 37 additions and 16 deletions

View File

@@ -70,9 +70,9 @@ def manage_modulestores(request,reload_dir=None):
if reload_dir is not None:
if reload_dir not in def_ms.courses:
html += "<h2><font color='red'>Error: '%s' is not a valid course directory</font></h2>" % reload_dir
html += '<h2 class="inline-error">Error: "%s" is not a valid course directory</h2>' % reload_dir
else:
html += "<h2><font color='blue'>Reloaded course directory '%s'</font></h2>" % reload_dir
html += '<h2>Reloaded course directory "%s"</h2>' % reload_dir
def_ms.try_load_course(reload_dir)
#----------------------------------------
@@ -179,9 +179,9 @@ def gitreload(request, reload_dir=None):
if reload_dir is not None:
def_ms = modulestore()
if reload_dir not in def_ms.courses:
html += "<h2><font color='red'>Error: '%s' is not a valid course directory</font></h2>" % reload_dir
html += '<h2 class="inline-error">Error: "%s" is not a valid course directory</font></h2>' % reload_dir
else:
html += "<h2><font color='blue'>Reloaded course directory '%s'</font></h2>" % reload_dir
html += "<h2>Reloaded course directory '%s'</h2>" % reload_dir
def_ms.try_load_course(reload_dir)
track.views.server_track(request, 'reloaded %s' % reload_dir, {}, page='migrate')

View File

@@ -21,7 +21,7 @@
if(json.success) {
location.href="${reverse('dashboard')}";
}else{
$('#register_message').html("<p><font color='red'>" + json.error + "</font></p>");
$('#register_message').html('<p class="inline-error">' + json.error + "</p>");
}
});
})(this)