From 042ae2da295006d9e7e575feb29497aab4f2aed1 Mon Sep 17 00:00:00 2001 From: Diana Huang Date: Wed, 6 Feb 2013 12:51:52 -0500 Subject: [PATCH] Fix some bugs with the grading module and make the 'closed' page a little nicer --- common/lib/xmodule/xmodule/peer_grading_module.py | 4 ++-- lms/templates/peer_grading/peer_grading_closed.html | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/common/lib/xmodule/xmodule/peer_grading_module.py b/common/lib/xmodule/xmodule/peer_grading_module.py index ce82da3bef..f91b4d02f9 100644 --- a/common/lib/xmodule/xmodule/peer_grading_module.py +++ b/common/lib/xmodule/xmodule/peer_grading_module.py @@ -20,7 +20,7 @@ import copy import itertools import json import logging -import datetime.datetime +from datetime import datetime from lxml.html import rewrite_links import os from pkg_resources import resource_string @@ -425,7 +425,7 @@ class PeerGradingModule(XModule): Show the Peer grading closed template ''' html = self.system.render_template('peer_grading/peer_grading_closed.html', { - 'use_for_single_location': self.use_single_location + 'use_for_single_location': self.use_for_single_location }) return html diff --git a/lms/templates/peer_grading/peer_grading_closed.html b/lms/templates/peer_grading/peer_grading_closed.html index 85a0a6d490..97d08e64db 100644 --- a/lms/templates/peer_grading/peer_grading_closed.html +++ b/lms/templates/peer_grading/peer_grading_closed.html @@ -1,4 +1,5 @@
+

Peer Grading

% if use_for_single_location:

Peer grading for this problem is closed at this time.

%else: