~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-07-03 01:39:51 UTC
  • Revision ID: grantw@unimelb.edu.au-20100703013951-mo3i08jw494dddve
Install 'python' in the jail, not 'python2.5' -- we want the default system Python, and 2.5 doesn't exist on Lucid.

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>
29
46
          </py:choose>
30
47
            <td><span title="${submission.submitter.display_name}">${submission.submitter.short_name}</span></td>
31
48
            <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>
 
49
            <td>svn co -r${submission.revision} ${build_subversion_url(req, submission)}</td>
33
50
          </tr>
34
51
        </py:for>
35
52
        </tbody>
36
53
      </table>
 
54
      <p>Check these out with your IVLE username and Subversion password, as
 
55
      documented under <a class="helpaction"
 
56
      href="/+help/Files/Subversion#external">External Subversion
 
57
      access</a>.</p>
37
58
 
38
59
      <h2>Assigned submitters</h2>
39
 
      <table id="project_assigneds" class="project_list">
 
60
      <div py:if="project.project_set.assigned.count() == 0"
 
61
           py:choose="project.project_set.is_group">
 
62
        <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>
 
63
        <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>
 
64
      </div>
 
65
      <table id="project_assigneds" class="pretty_table"
 
66
             py:if="project.project_set.assigned.count() > 0">
40
67
        <thead><tr><th>Assigned</th></tr></thead>
41
68
        <tbody>
42
69
        <py:for each="assignee in project.project_set.assigned">