~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-15 05:37:50 UTC
  • Revision ID: grantw@unimelb.edu.au-20100215053750-hihmegnp8e7dshc2
Ignore test coverage files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
      <p>Submissions: ${project.latest_submissions.count()}/${project.project_set.assigned.count()}</p>
11
11
 
12
12
      <h2>Latest submissions</h2>
13
 
      <table id="project_submissions" class="project_list" summary="Latest Submissions"
 
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"
14
17
             py:if="project.latest_submissions.count() > 0">
15
18
        <thead>
16
19
          <tr>
36
39
      </table>
37
40
 
38
41
      <h2>Assigned submitters</h2>
39
 
      <table id="project_assigneds" class="project_list">
 
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">
40
49
        <thead><tr><th>Assigned</th></tr></thead>
41
50
        <tbody>
42
51
        <py:for each="assignee in project.project_set.assigned">