Fix some bugs with the grading module and make
the 'closed' page a little nicer
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user