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

« back to all changes in this revision

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

  • Committer: William Grant
  • Date: 2009-05-12 13:25:14 UTC
  • mto: This revision was merged to the branch mainline in revision 1247.
  • Revision ID: grantw@unimelb.edu.au-20090512132514-86ld519bwa5rtfma
Fix up duplicated ProjectView submitter/assessed display.

Rename Who to Group and By to Submitter. Only show Group when it's different
from Submitter.

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
             py:if="project.latest_submissions.count() > 0">
13
13
        <thead>
14
14
          <tr>
15
 
            <th>Who</th>
16
 
            <th>By</th>
 
15
            <th>Group</th>
 
16
            <th>Submitter</th>
17
17
            <th>Date</th>
18
18
            <th>Download</th>
19
19
          </tr>
21
21
        <tbody>
22
22
        <py:for each="submission in project.latest_submissions">
23
23
          <tr>
24
 
            <td>${submission.assessed.principal.display_name}</td>
 
24
          <py:choose test="submission.assessed.principal is submission.submitter">
 
25
            <td py:when="True">-</td>
 
26
            <td py:otherwise="">${submission.assessed.principal.display_name}</td>
 
27
          </py:choose>
25
28
            <td>${submission.submitter.display_name}</td>
26
29
            <td>${submission.date_submitted.strftime("%Y-%m-%d %H:%M:%S")}</td>
27
30
            <td>svn co --username ${user.login} -r${submission.revision} ${build_subversion_url(svn_addr, submission)}</td>