Fix some bugs with the grading module and make

the 'closed' page a little nicer
This commit is contained in:
Diana Huang
2013-02-06 12:51:52 -05:00
parent e8d01a0882
commit 042ae2da29
2 changed files with 3 additions and 2 deletions

View File

@@ -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

View File

@@ -1,4 +1,5 @@
<section class="container peer-grading-container">
<h2>Peer Grading</h2>
% if use_for_single_location:
<p>Peer grading for this problem is closed at this time.</p>
%else: