Commit 962d83d7 by Diana Huang

Display a message when there are no problems to grade

parent bd47b0c7
...@@ -21,13 +21,19 @@ ...@@ -21,13 +21,19 @@
<h2>Instructions</h2> <h2>Instructions</h2>
<p>Here are a list of problems that need to be peer graded for this course.</p> <p>Here are a list of problems that need to be peer graded for this course.</p>
% if success: % if success:
<ul class="problem-list"> % if len(problem_list) == 0:
%for problem in problem_list: <div class="message-container">
<li> Nothing to grade!
<a href="${ajax_url}/problem/${problem.location}">${problem.location} (${problem.num_graded} graded, ${problem.num_pending} pending)</a> </div>
</li> %else:
%endfor <ul class="problem-list">
</ul> %for problem in problem_list:
<li>
<a href="${ajax_url}/problem/${problem.location}">${problem.problem_name} (${problem.num_graded} graded, ${problem.num_pending} pending)</a>
</li>
%endfor
</ul>
%endif
%endif %endif
</div> </div>
</section> </section>
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