~azzar1/unity/add-show-desktop-key

1165.3.2 by Nick Chadwick
Created a new view for IVLE, allowing lecturers and tutors to
1
<html xmlns="http://www.w3.org/1999/xhtml"
2
      xmlns:py="http://genshi.edgewall.org/">
3
  <head>
1165.3.16 by William Grant
Rework titles for ProjectView.
4
    <title>${project.name} for ${project.project_set.offering.subject.name}</title>
1165.3.2 by Nick Chadwick
Created a new view for IVLE, allowing lecturers and tutors to
5
  </head>
6
  <body>
1165.3.16 by William Grant
Rework titles for ProjectView.
7
    <h1>${project.name} for ${project.project_set.offering.subject.name}</h1>
1165.3.2 by Nick Chadwick
Created a new view for IVLE, allowing lecturers and tutors to
8
    <div id="ivle_padding">
9
      <p>${project.synopsis}</p>
1165.3.46 by William Grant
ProjectView now uses Project.latest_submissions, rather than miscalculating itself.
10
      <p>Submissions: ${project.latest_submissions.count()}/${project.project_set.assigned.count()}</p>
1248 by William Grant
Add some headings to ProjectView.
11
12
      <h2>Latest submissions</h2>
1165.3.78 by William Grant
Pretty up the ProjectView Assigned table too.
13
      <table id="project_submissions" class="project_list" summary="Latest Submissions"
1165.3.46 by William Grant
ProjectView now uses Project.latest_submissions, rather than miscalculating itself.
14
             py:if="project.latest_submissions.count() > 0">
1165.3.66 by William Grant
Prettify the submissions table.
15
        <thead>
16
          <tr>
1165.3.68 by William Grant
Fix up duplicated ProjectView submitter/assessed display.
17
            <th>Group</th>
18
            <th>Submitter</th>
1165.3.66 by William Grant
Prettify the submissions table.
19
            <th>Date</th>
20
            <th>Download</th>
21
          </tr>
22
        </thead>
23
        <tbody>
24
        <py:for each="submission in project.latest_submissions">
25
          <tr>
1165.3.68 by William Grant
Fix up duplicated ProjectView submitter/assessed display.
26
          <py:choose test="submission.assessed.principal is submission.submitter">
27
            <td py:when="True">-</td>
1165.3.70 by William Grant
Display short names in ProjectView, with display names as tooltips.
28
            <td py:otherwise=""><span title="${submission.assessed.principal.display_name}">${submission.assessed.principal.short_name}</span></td>
1165.3.68 by William Grant
Fix up duplicated ProjectView submitter/assessed display.
29
          </py:choose>
1165.3.70 by William Grant
Display short names in ProjectView, with display names as tooltips.
30
            <td><span title="${submission.submitter.display_name}">${submission.submitter.short_name}</span></td>
1165.3.66 by William Grant
Prettify the submissions table.
31
            <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>
33
          </tr>
34
        </py:for>
35
        </tbody>
1165.3.41 by Nick Chadwick
Modified the project view to display a list of submissions in a table.
36
      </table>
1248 by William Grant
Add some headings to ProjectView.
37
38
      <h2>Assigned submitters</h2>
1165.3.78 by William Grant
Pretty up the ProjectView Assigned table too.
39
      <table id="project_assigneds" class="project_list">
40
        <thead><tr><th>Assigned</th></tr></thead>
41
        <tbody>
1165.3.44 by William Grant
Clean up the ProjectView context.
42
        <py:for each="assignee in project.project_set.assigned">
1165.3.41 by Nick Chadwick
Modified the project view to display a list of submissions in a table.
43
          <tr>
1165.3.70 by William Grant
Display short names in ProjectView, with display names as tooltips.
44
            <td><span title="${assignee.display_name}">${assignee.short_name}</span></td>
1165.3.63 by Nick Chadwick
Removed non-functional links to delete projects and grant extensions.
45
            <!-- <td><a>Grant an extension</a></td> -->
1165.3.41 by Nick Chadwick
Modified the project view to display a list of submissions in a table.
46
          </tr>
1165.3.39 by Nick Chadwick
Added a method onto offering to find all the users enroled in the subject
47
        </py:for>
1165.3.78 by William Grant
Pretty up the ProjectView Assigned table too.
48
        </tbody>
1165.3.39 by Nick Chadwick
Added a method onto offering to find all the users enroled in the subject
49
      </table>
1165.3.2 by Nick Chadwick
Created a new view for IVLE, allowing lecturers and tutors to
50
    </div>
51
  </body>
52
</html>