~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-26 06:30:50 UTC
  • Revision ID: grantw@unimelb.edu.au-20100226063050-nwkscx3qsvigtv31
Fix diffservice and svnlogservice to create authentication-capable pysvn.Clients, so they don't crash if credentials aren't cached.

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
      <div class="contextactions">
 
10
        <a py:if="'edit' in permissions"
 
11
           class="editaction"
 
12
           href="${req.publisher.generate(project, ProjectEdit)}">
 
13
           Change details
 
14
        </a>
 
15
        <a py:if="'edit' in permissions"
 
16
           class="deleteaction"
 
17
           href="${req.publisher.generate(project, ProjectDelete)}">
 
18
           Delete project
 
19
        </a>
 
20
      </div>
 
21
      <a py:if="project.url not in (None, '')" href="${project.url}">${project.url}</a>
 
22
      <p>Deadline: ${format_datetime(project.deadline)}</p>
9
23
      <p>${project.synopsis}</p>
10
24
      <p>Submissions: ${project.latest_submissions.count()}/${project.project_set.assigned.count()}</p>
11
25
 
12
26
      <h2>Latest submissions</h2>
13
 
      <table id="project_submissions" class="project_list" summary="Latest Submissions"
 
27
      <div py:if="project.latest_submissions.count() == 0">
 
28
        There are no submissions.
 
29
      </div>
 
30
      <table id="project_submissions" class="pretty_table" summary="Latest Submissions"
14
31
             py:if="project.latest_submissions.count() > 0">
15
32
        <thead>
16
33
          <tr>
36
53
      </table>
37
54
 
38
55
      <h2>Assigned submitters</h2>
39
 
      <table id="project_assigneds" class="project_list">
 
56
      <div py:if="project.project_set.assigned.count() == 0"
 
57
           py:choose="project.project_set.is_group">
 
58
        <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>
 
59
        <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>
 
60
      </div>
 
61
      <table id="project_assigneds" class="pretty_table"
 
62
             py:if="project.project_set.assigned.count() > 0">
40
63
        <thead><tr><th>Assigned</th></tr></thead>
41
64
        <tbody>
42
65
        <py:for each="assignee in project.project_set.assigned">