~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: 2010-02-25 07:34:50 UTC
  • Revision ID: grantw@unimelb.edu.au-20100225073450-zcl8ev5hlyhbszeu
Activate the Storm C extensions if possible. Moar speed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
  <body>
7
7
    <h1>${project.name} for ${project.project_set.offering.subject.name}</h1>
8
8
    <div id="ivle_padding">
 
9
      <a py:if="project.url not in (None, '')" href="${project.url}">${project.url}</a>
 
10
      <p>Deadline: ${format_datetime(project.deadline)}</p>
9
11
      <p>${project.synopsis}</p>
10
12
      <p>Submissions: ${project.latest_submissions.count()}/${project.project_set.assigned.count()}</p>
11
13
 
12
14
      <h2>Latest submissions</h2>
13
 
      <table id="project_submissions" class="project_list" summary="Latest Submissions"
 
15
      <div py:if="project.latest_submissions.count() == 0">
 
16
        There are no submissions.
 
17
      </div>
 
18
      <table id="project_submissions" class="pretty_table" summary="Latest Submissions"
14
19
             py:if="project.latest_submissions.count() > 0">
15
20
        <thead>
16
21
          <tr>
36
41
      </table>
37
42
 
38
43
      <h2>Assigned submitters</h2>
39
 
      <table id="project_assigneds" class="project_list">
 
44
      <div py:if="project.project_set.assigned.count() == 0"
 
45
           py:choose="project.project_set.is_group">
 
46
        <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>
 
47
        <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>
 
48
      </div>
 
49
      <table id="project_assigneds" class="pretty_table"
 
50
             py:if="project.project_set.assigned.count() > 0">
40
51
        <thead><tr><th>Assigned</th></tr></thead>
41
52
        <tbody>
42
53
        <py:for each="assignee in project.project_set.assigned">