~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">
1710.1.18 by Matt Giuca
Added links to ProjectEdit view, from offering projects page, manage projects page, and individual project pages.
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>
1710.1.20 by Matt Giuca
Fully link the Project Delete view, from all the places the Project Edit view is linked.
15
        <a py:if="'edit' in permissions"
16
           class="deleteaction"
17
           href="${req.publisher.generate(project, ProjectDelete)}">
18
           Delete project
19
        </a>
1710.1.18 by Matt Giuca
Added links to ProjectEdit view, from offering projects page, manage projects page, and individual project pages.
20
      </div>
1719 by Matt Giuca
Project page: Added URL and deadline, so this page now shows all fields of the project. Fixes Launchpad bug #527560.
21
      <a py:if="project.url not in (None, '')" href="${project.url}">${project.url}</a>
22
      <p>Deadline: ${format_datetime(project.deadline)}</p>
1165.3.2 by Nick Chadwick
Created a new view for IVLE, allowing lecturers and tutors to
23
      <p>${project.synopsis}</p>
1165.3.46 by William Grant
ProjectView now uses Project.latest_submissions, rather than miscalculating itself.
24
      <p>Submissions: ${project.latest_submissions.count()}/${project.project_set.assigned.count()}</p>
1248 by William Grant
Add some headings to ProjectView.
25
26
      <h2>Latest submissions</h2>
1815 by Matt Giuca
Project page: Moved instructions under 'latest submissions' above the table, or it will be hard to see them under hundreds of submissions.
27
      <p>Check these out with your IVLE username and Subversion password, as
28
      documented under <a class="helpaction"
29
      href="/+help/Files/Subversion#external">External Subversion
30
      access</a>.<br />
31
      <a class="marksaction"
32
           href="${req.publisher.generate(project, ProjectExport)}">
33
           Bash script for exporting submitted projects
34
        </a>
35
      </p>
1812.1.9 by Matt Giuca
Merge from trunk.
36
      <p class="late_submission">* Late submissions (number of days late)</p>
1375.1.4 by William Grant
Indicate when there is nobody assigned to a project, and link to the page to fix that.
37
      <div py:if="project.latest_submissions.count() == 0">
38
        There are no submissions.
39
      </div>
1366 by Matt Giuca
CSS: Moved ivle/webapp/admin/subject-media/project.css's project_list styles to ivle/webapp/coremedia/ivle.css as pretty_table, since it is generally useful and very pretty.
40
      <table id="project_submissions" class="pretty_table" summary="Latest Submissions"
1165.3.46 by William Grant
ProjectView now uses Project.latest_submissions, rather than miscalculating itself.
41
             py:if="project.latest_submissions.count() > 0">
1165.3.66 by William Grant
Prettify the submissions table.
42
        <thead>
43
          <tr>
1165.3.68 by William Grant
Fix up duplicated ProjectView submitter/assessed display.
44
            <th>Group</th>
45
            <th>Submitter</th>
1165.3.66 by William Grant
Prettify the submissions table.
46
            <th>Date</th>
47
            <th>Download</th>
48
          </tr>
49
        </thead>
50
        <tbody>
51
        <py:for each="submission in project.latest_submissions">
1812.1.11 by Matt Giuca
Project page: Late submissions are now shown in red (the whole line, not just the date), rather than italics.
52
          <tr py:attrs="{'class': 'late_submission'} if submission.late else {}">
1165.3.68 by William Grant
Fix up duplicated ProjectView submitter/assessed display.
53
          <py:choose test="submission.assessed.principal is submission.submitter">
54
            <td py:when="True">-</td>
1165.3.70 by William Grant
Display short names in ProjectView, with display names as tooltips.
55
            <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.
56
          </py:choose>
1165.3.70 by William Grant
Display short names in ProjectView, with display names as tooltips.
57
            <td><span title="${submission.submitter.display_name}">${submission.submitter.short_name}</span></td>
1812.1.12 by Matt Giuca
Project page: Removed the space before the '*'.
58
            <td>${submission.date_submitted.strftime("%Y-%m-%d %H:%M:%S")}<py:if test="submission.late">* (${submission.days_late})</py:if></td>
1810 by David Coles
Fixes for the export command.
59
            <td>${submission.get_svn_export_command(req)}</td>
1165.3.66 by William Grant
Prettify the submissions table.
60
          </tr>
61
        </py:for>
62
        </tbody>
1165.3.41 by Nick Chadwick
Modified the project view to display a list of submissions in a table.
63
      </table>
1248 by William Grant
Add some headings to ProjectView.
64
1816 by Matt Giuca
Project page: Replaced the confusing title 'Assigned submitters' with 'Expected submitters', and the heading 'assigned' with 'name'.
65
      <h2>Expected submitters</h2>
1375.1.4 by William Grant
Indicate when there is nobody assigned to a project, and link to the page to fix that.
66
      <div py:if="project.project_set.assigned.count() == 0"
67
           py:choose="project.project_set.is_group">
68
        <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>
69
        <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>
70
      </div>
71
      <table id="project_assigneds" class="pretty_table"
72
             py:if="project.project_set.assigned.count() > 0">
1816 by Matt Giuca
Project page: Replaced the confusing title 'Assigned submitters' with 'Expected submitters', and the heading 'assigned' with 'name'.
73
        <thead><tr><th>Name</th></tr></thead>
1165.3.78 by William Grant
Pretty up the ProjectView Assigned table too.
74
        <tbody>
1165.3.44 by William Grant
Clean up the ProjectView context.
75
        <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.
76
          <tr>
1165.3.70 by William Grant
Display short names in ProjectView, with display names as tooltips.
77
            <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.
78
            <!-- <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.
79
          </tr>
1165.3.39 by Nick Chadwick
Added a method onto offering to find all the users enroled in the subject
80
        </py:for>
1165.3.78 by William Grant
Pretty up the ProjectView Assigned table too.
81
        </tbody>
1165.3.39 by Nick Chadwick
Added a method onto offering to find all the users enroled in the subject
82
      </table>
1165.3.2 by Nick Chadwick
Created a new view for IVLE, allowing lecturers and tutors to
83
    </div>
84
  </body>
85
</html>