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> |
|
1375.1.4
by William Grant
Indicate when there is nobody assigned to a project, and link to the page to fix that. |
27 |
<div py:if="project.latest_submissions.count() == 0"> |
28 |
There are no submissions. |
|
29 |
</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. |
30 |
<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. |
31 |
py:if="project.latest_submissions.count() > 0"> |
1165.3.66
by William Grant
Prettify the submissions table. |
32 |
<thead>
|
33 |
<tr>
|
|
1165.3.68
by William Grant
Fix up duplicated ProjectView submitter/assessed display. |
34 |
<th>Group</th> |
35 |
<th>Submitter</th> |
|
1165.3.66
by William Grant
Prettify the submissions table. |
36 |
<th>Date</th> |
37 |
<th>Download</th> |
|
38 |
</tr> |
|
39 |
</thead> |
|
40 |
<tbody>
|
|
41 |
<py:for each="submission in project.latest_submissions"> |
|
42 |
<tr>
|
|
1165.3.68
by William Grant
Fix up duplicated ProjectView submitter/assessed display. |
43 |
<py:choose test="submission.assessed.principal is submission.submitter"> |
44 |
<td py:when="True">-</td> |
|
1165.3.70
by William Grant
Display short names in ProjectView, with display names as tooltips. |
45 |
<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. |
46 |
</py:choose> |
1165.3.70
by William Grant
Display short names in ProjectView, with display names as tooltips. |
47 |
<td><span title="${submission.submitter.display_name}">${submission.submitter.short_name}</span></td> |
1165.3.66
by William Grant
Prettify the submissions table. |
48 |
<td>${submission.date_submitted.strftime("%Y-%m-%d %H:%M:%S")}</td> |
1789
by Matt Giuca
Changed database.py get_svn_url to take a req; include the req.user.login in the Subversion URL. This allows you to check out repositories without separately supplying the IVLE URL (as Subversion won't ask for a username by default). Also removed --username= from the lecturer project view, as it's redundant now. This fixes Launchpad bug #543936. |
49 |
<td>svn co -r${submission.revision} ${build_subversion_url(req, submission)}</td> |
1165.3.66
by William Grant
Prettify the submissions table. |
50 |
</tr> |
51 |
</py:for> |
|
52 |
</tbody> |
|
1165.3.41
by Nick Chadwick
Modified the project view to display a list of submissions in a table. |
53 |
</table> |
1787
by Matt Giuca
Lecturer project page: Added link to External Subversion access to help lecturers figure out how to get their SVN password. |
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> |
|
1248
by William Grant
Add some headings to ProjectView. |
58 |
|
59 |
<h2>Assigned 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. |
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"> |
|
1165.3.78
by William Grant
Pretty up the ProjectView Assigned table too. |
67 |
<thead><tr><th>Assigned</th></tr></thead> |
68 |
<tbody>
|
|
1165.3.44
by William Grant
Clean up the ProjectView context. |
69 |
<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. |
70 |
<tr>
|
1165.3.70
by William Grant
Display short names in ProjectView, with display names as tooltips. |
71 |
<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. |
72 |
<!-- <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. |
73 |
</tr> |
1165.3.39
by Nick Chadwick
Added a method onto offering to find all the users enroled in the subject |
74 |
</py:for> |
1165.3.78
by William Grant
Pretty up the ProjectView Assigned table too. |
75 |
</tbody> |
1165.3.39
by Nick Chadwick
Added a method onto offering to find all the users enroled in the subject |
76 |
</table> |
1165.3.2
by Nick Chadwick
Created a new view for IVLE, allowing lecturers and tutors to |
77 |
</div> |
78 |
</body> |
|
79 |
</html> |