Commit 042ae2da by Diana Huang

Fix some bugs with the grading module and make

the 'closed' page a little nicer
parent e8d01a08
...@@ -20,7 +20,7 @@ import copy ...@@ -20,7 +20,7 @@ import copy
import itertools import itertools
import json import json
import logging import logging
import datetime.datetime from datetime import datetime
from lxml.html import rewrite_links from lxml.html import rewrite_links
import os import os
from pkg_resources import resource_string from pkg_resources import resource_string
...@@ -425,7 +425,7 @@ class PeerGradingModule(XModule): ...@@ -425,7 +425,7 @@ class PeerGradingModule(XModule):
Show the Peer grading closed template Show the Peer grading closed template
''' '''
html = self.system.render_template('peer_grading/peer_grading_closed.html', { 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 return html
......
<section class="container peer-grading-container"> <section class="container peer-grading-container">
<h2>Peer Grading</h2>
% if use_for_single_location: % if use_for_single_location:
<p>Peer grading for this problem is closed at this time.</p> <p>Peer grading for this problem is closed at this time.</p>
%else: %else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment