<%! from django.utils.translation import ugettext as _ %> <% nothing_to_grade_message = _( """ {p_tag}You currently do not have any peer grading to do. In order to have peer grading to do: {ul_tag} {li_tag}You need to have submitted a response to a peer grading problem.{end_li_tag} {li_tag}The course team needs to score the essays that are used to help you better understand the grading criteria.{end_li_tag} {li_tag}There must be submissions that are waiting for grading.{end_li_tag} {end_ul_tag} {end_p_tag} """).format(p_tag="

", end_p_tag="

", ul_tag="", li_tag="
  • ", end_li_tag="
  • ") %>
    ${error_text}

    ${_("Peer Grading")}

    ${_("Instructions")}

    ${_("Here is a list of problems that need to be peer graded for this course.")}

    % if success: % if len(problem_list) == 0:
    ${nothing_to_grade_message}
    %else:
    %for problem in problem_list: %endfor
    ${_("Problem Name")} ${_("Due date")} ${_("Graded")} ${_("Available")} ${_("Required")} ${_("Progress")}
    %if problem['closed']: ${problem['problem_name']} %else: ${problem['problem_name']} %endif % if problem['due']: ${problem['due']} % else: ${_("No due date")} % endif ${problem['num_graded']} ${problem['num_pending']} ${problem['num_required']}
    %endif %endif