~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-27 04:07:51 UTC
  • Revision ID: grantw@unimelb.edu.au-20090527040751-qwh5kq65wbdfrtsz
Drop ivle.conf usage from ivle.interpret.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<html xmlns="http://www.w3.org/1999/xhtml"
 
2
      xmlns:py="http://genshi.edgewall.org/">
 
3
  <head>
 
4
    <title>${project.name} for ${project.project_set.offering.subject.name}</title>
 
5
  </head>
 
6
  <body>
 
7
    <h1>${project.name} for ${project.project_set.offering.subject.name}</h1>
 
8
    <div id="ivle_padding">
 
9
      <p>${project.synopsis}</p>
 
10
      <p>Submissions: ${project.latest_submissions.count()}/${project.project_set.assigned.count()}</p>
 
11
 
 
12
      <h2>Latest submissions</h2>
 
13
      <table id="project_submissions" class="project_list" summary="Latest Submissions"
 
14
             py:if="project.latest_submissions.count() > 0">
 
15
        <thead>
 
16
          <tr>
 
17
            <th>Group</th>
 
18
            <th>Submitter</th>
 
19
            <th>Date</th>
 
20
            <th>Download</th>
 
21
          </tr>
 
22
        </thead>
 
23
        <tbody>
 
24
        <py:for each="submission in project.latest_submissions">
 
25
          <tr>
 
26
          <py:choose test="submission.assessed.principal is submission.submitter">
 
27
            <td py:when="True">-</td>
 
28
            <td py:otherwise=""><span title="${submission.assessed.principal.display_name}">${submission.assessed.principal.short_name}</span></td>
 
29
          </py:choose>
 
30
            <td><span title="${submission.submitter.display_name}">${submission.submitter.short_name}</span></td>
 
31
            <td>${submission.date_submitted.strftime("%Y-%m-%d %H:%M:%S")}</td>
 
32
            <td>svn co --username ${user.login} -r${submission.revision} ${build_subversion_url(svn_addr, submission)}</td>
 
33
          </tr>
 
34
        </py:for>
 
35
        </tbody>
 
36
      </table>
 
37
 
 
38
      <h2>Assigned submitters</h2>
 
39
      <table id="project_assigneds" class="project_list">
 
40
        <thead><tr><th>Assigned</th></tr></thead>
 
41
        <tbody>
 
42
        <py:for each="assignee in project.project_set.assigned">
 
43
          <tr>
 
44
            <td><span title="${assignee.display_name}">${assignee.short_name}</span></td>
 
45
            <!-- <td><a>Grant an extension</a></td> -->
 
46
          </tr>
 
47
        </py:for>
 
48
        </tbody>
 
49
      </table>
 
50
    </div>
 
51
  </body>
 
52
</html>