~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-02-18 06:04:22 UTC
  • Revision ID: matt.giuca@gmail.com-20100218060422-38ugfm7aj4g053vy
Sample data: changed studenta's repository -- edited the chinese file so it linewraps appropriately.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<html xmlns="http://www.w3.org/1999/xhtml"
2
2
      xmlns:py="http://genshi.edgewall.org/">
3
3
  <head>
4
 
    <title>Project - ${project.short_name}</title>
 
4
    <title>${project.name} for ${project.project_set.offering.subject.name}</title>
5
5
  </head>
6
6
  <body>
7
 
    <h1>Project - ${project.short_name}</h1>
 
7
    <h1>${project.name} for ${project.project_set.offering.subject.name}</h1>
8
8
    <div id="ivle_padding">
9
 
      <h2>${project.name}</h2>
10
9
      <p>${project.synopsis}</p>
11
 
      <p>Number of Asesseds - <strong>${project.assesseds.count()}</strong></p>
12
 
      <p>Number of Submissions - <strong>${len(submissions)}</strong></p>
13
 
      <h3>Latest Submissions</h3>
14
 
      <py:for each='submission in submissions'>
15
 
        <p>Submitted By: <strong>Somebody.</strong></p>
16
 
      </py:for>
 
10
      <p>Submissions: ${project.latest_submissions.count()}/${project.project_set.assigned.count()}</p>
 
11
 
 
12
      <h2>Latest submissions</h2>
 
13
      <div py:if="project.latest_submissions.count() == 0">
 
14
        There are no submissions.
 
15
      </div>
 
16
      <table id="project_submissions" class="pretty_table" summary="Latest Submissions"
 
17
             py:if="project.latest_submissions.count() > 0">
 
18
        <thead>
 
19
          <tr>
 
20
            <th>Group</th>
 
21
            <th>Submitter</th>
 
22
            <th>Date</th>
 
23
            <th>Download</th>
 
24
          </tr>
 
25
        </thead>
 
26
        <tbody>
 
27
        <py:for each="submission in project.latest_submissions">
 
28
          <tr>
 
29
          <py:choose test="submission.assessed.principal is submission.submitter">
 
30
            <td py:when="True">-</td>
 
31
            <td py:otherwise=""><span title="${submission.assessed.principal.display_name}">${submission.assessed.principal.short_name}</span></td>
 
32
          </py:choose>
 
33
            <td><span title="${submission.submitter.display_name}">${submission.submitter.short_name}</span></td>
 
34
            <td>${submission.date_submitted.strftime("%Y-%m-%d %H:%M:%S")}</td>
 
35
            <td>svn co --username ${user.login} -r${submission.revision} ${build_subversion_url(svn_addr, submission)}</td>
 
36
          </tr>
 
37
        </py:for>
 
38
        </tbody>
 
39
      </table>
 
40
 
 
41
      <h2>Assigned submitters</h2>
 
42
      <div py:if="project.project_set.assigned.count() == 0"
 
43
           py:choose="project.project_set.is_group">
 
44
        <py:when test="True">There are no groups assigned to submit this project. Do you want to <a href="${req.publisher.generate(project.project_set, GroupsView)}">create some</a>?</py:when>
 
45
        <py:otherwise>There are no students assigned to submit this project. Do you want to <a href="${req.publisher.generate(project.project_set.offering, EnrolView)}">enrol some</a>?</py:otherwise>
 
46
      </div>
 
47
      <table id="project_assigneds" class="pretty_table"
 
48
             py:if="project.project_set.assigned.count() > 0">
 
49
        <thead><tr><th>Assigned</th></tr></thead>
 
50
        <tbody>
 
51
        <py:for each="assignee in project.project_set.assigned">
 
52
          <tr>
 
53
            <td><span title="${assignee.display_name}">${assignee.short_name}</span></td>
 
54
            <!-- <td><a>Grant an extension</a></td> -->
 
55
          </tr>
 
56
        </py:for>
 
57
        </tbody>
 
58
      </table>
17
59
    </div>
18
60
  </body>
19
61
</html>