~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to ivle/webapp/admin/templates/project.html

  • Committer: Matt Giuca
  • Date: 2010-07-22 02:12:36 UTC
  • mfrom: (1812.1.13 late-submit)
  • Revision ID: matt.giuca@gmail.com-20100722021236-k8kt4cqdtywzpk24
Merge from trunk late-submit.
Students may now submit projects after the deadline, but they are warned that the submission is late.
Lecturers are now given data on which submissions were made late, and how many days.
(LP: #598346)

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
           Bash script for exporting submitted projects
34
34
        </a>
35
35
      </p>
 
36
      <p class="late_submission">* Late submissions (number of days late)</p>
36
37
      <div py:if="project.latest_submissions.count() == 0">
37
38
        There are no submissions.
38
39
      </div>
48
49
        </thead>
49
50
        <tbody>
50
51
        <py:for each="submission in project.latest_submissions">
51
 
          <tr>
 
52
          <tr py:attrs="{'class': 'late_submission'} if submission.late else {}">
52
53
          <py:choose test="submission.assessed.principal is submission.submitter">
53
54
            <td py:when="True">-</td>
54
55
            <td py:otherwise=""><span title="${submission.assessed.principal.display_name}">${submission.assessed.principal.short_name}</span></td>
55
56
          </py:choose>
56
57
            <td><span title="${submission.submitter.display_name}">${submission.submitter.short_name}</span></td>
57
 
            <td>${submission.date_submitted.strftime("%Y-%m-%d %H:%M:%S")}</td>
 
58
            <td>${submission.date_submitted.strftime("%Y-%m-%d %H:%M:%S")}<py:if test="submission.late">* (${submission.days_late})</py:if></td>
58
59
            <td>${submission.get_svn_export_command(req)}</td>
59
60
          </tr>
60
61
        </py:for>