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"> |
1719
by Matt Giuca
Project page: Added URL and deadline, so this page now shows all fields of the project. Fixes Launchpad bug #527560. |
9 |
<a py:if="project.url not in (None, '')" href="${project.url}">${project.url}</a> |
10 |
<p>Deadline: ${format_datetime(project.deadline)}</p> |
|
1165.3.2
by Nick Chadwick
Created a new view for IVLE, allowing lecturers and tutors to |
11 |
<p>${project.synopsis}</p> |
1165.3.46
by William Grant
ProjectView now uses Project.latest_submissions, rather than miscalculating itself. |
12 |
<p>Submissions: ${project.latest_submissions.count()}/${project.project_set.assigned.count()}</p> |
1248
by William Grant
Add some headings to ProjectView. |
13 |
|
14 |
<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. |
15 |
<div py:if="project.latest_submissions.count() == 0"> |
16 |
There are no submissions. |
|
17 |
</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. |
18 |
<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. |
19 |
py:if="project.latest_submissions.count() > 0"> |
1165.3.66
by William Grant
Prettify the submissions table. |
20 |
<thead>
|
21 |
<tr>
|
|
1165.3.68
by William Grant
Fix up duplicated ProjectView submitter/assessed display. |
22 |
<th>Group</th> |
23 |
<th>Submitter</th> |
|
1165.3.66
by William Grant
Prettify the submissions table. |
24 |
<th>Date</th> |
25 |
<th>Download</th> |
|
26 |
</tr> |
|
27 |
</thead> |
|
28 |
<tbody>
|
|
29 |
<py:for each="submission in project.latest_submissions"> |
|
30 |
<tr>
|
|
1165.3.68
by William Grant
Fix up duplicated ProjectView submitter/assessed display. |
31 |
<py:choose test="submission.assessed.principal is submission.submitter"> |
32 |
<td py:when="True">-</td> |
|
1165.3.70
by William Grant
Display short names in ProjectView, with display names as tooltips. |
33 |
<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. |
34 |
</py:choose> |
1165.3.70
by William Grant
Display short names in ProjectView, with display names as tooltips. |
35 |
<td><span title="${submission.submitter.display_name}">${submission.submitter.short_name}</span></td> |
1165.3.66
by William Grant
Prettify the submissions table. |
36 |
<td>${submission.date_submitted.strftime("%Y-%m-%d %H:%M:%S")}</td> |
37 |
<td>svn co --username ${user.login} -r${submission.revision} ${build_subversion_url(svn_addr, submission)}</td> |
|
38 |
</tr> |
|
39 |
</py:for> |
|
40 |
</tbody> |
|
1165.3.41
by Nick Chadwick
Modified the project view to display a list of submissions in a table. |
41 |
</table> |
1248
by William Grant
Add some headings to ProjectView. |
42 |
|
43 |
<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. |
44 |
<div py:if="project.project_set.assigned.count() == 0" |
45 |
py:choose="project.project_set.is_group"> |
|
46 |
<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> |
|
47 |
<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> |
|
48 |
</div> |
|
49 |
<table id="project_assigneds" class="pretty_table" |
|
50 |
py:if="project.project_set.assigned.count() > 0"> |
|
1165.3.78
by William Grant
Pretty up the ProjectView Assigned table too. |
51 |
<thead><tr><th>Assigned</th></tr></thead> |
52 |
<tbody>
|
|
1165.3.44
by William Grant
Clean up the ProjectView context. |
53 |
<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. |
54 |
<tr>
|
1165.3.70
by William Grant
Display short names in ProjectView, with display names as tooltips. |
55 |
<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. |
56 |
<!-- <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. |
57 |
</tr> |
1165.3.39
by Nick Chadwick
Added a method onto offering to find all the users enroled in the subject |
58 |
</py:for> |
1165.3.78
by William Grant
Pretty up the ProjectView Assigned table too. |
59 |
</tbody> |
1165.3.39
by Nick Chadwick
Added a method onto offering to find all the users enroled in the subject |
60 |
</table> |
1165.3.2
by Nick Chadwick
Created a new view for IVLE, allowing lecturers and tutors to |
61 |
</div> |
62 |
</body> |
|
63 |
</html> |