1
<html xmlns="http://www.w3.org/1999/xhtml"
2
xmlns:py="http://genshi.edgewall.org/">
4
<title>${context.subject.name} (${context.semester.year} semester ${context.semester.semester})</title>
7
<h1>${context.subject.name}</h1>
8
<div id="ivle_padding">
9
<div class="contextactions">
10
<a py:if="'enrol' in permissions"
12
href="${req.publisher.generate(context, None, ('+enrolments', '+new'))}">
17
<div py:if="'edit' in permissions or context.projects.count() > 0"
20
<py:choose test="context.projects.count()">
22
There are no projects for this offering.
25
<ul class="paddedlist">
26
<li py:for="project in context.projects"
27
py:attrs="{'class': 'project closed'}
28
if project.has_deadline_passed(req.user)
29
else {'class': 'project'}"
30
py:with="principal = project.project_set.get_submission_principal(req.user)">
31
<a href="${project.url}">${project.name}</a> –
32
<span py:content="format_submission_principal(req.user, principal)" /> –
33
<span title="${format_datetime(project.deadline)}">
34
${'closed' if project.has_deadline_passed(req.user) else 'due'} ${format_datetime_short(project.deadline)}
36
<py:if test="principal is not None"
37
py:with="submissions = project.get_submissions_for_principal(principal)">
39
<py:choose test="submissions.count()">
44
py:with="latest = submissions.last()"
45
title="${format_datetime(latest.date_submitted)}">
46
last submitted ${format_datetime_short(latest.date_submitted)}
54
<py:if test="context.get_open_projects_for_user(req.user).count() > 0">
56
To submit to a project that has not yet closed, use the file
57
browser to navigate to the file or directory that you wish to
58
submit, click “More actions...”,
59
“Submit”, and then select the correct project.
62
If the project to which you intend to submit is not listed,
63
ensure that you are in the correct directory, or a subdirectory
64
thereof. For solo projects, you must be inside the subject's
65
“mywork” directory. For group projects, you must be
66
inside the directory for the assigned group.
69
You may resubmit a project as you wish until the deadline, but
70
a new submission will overwrite any made earlier.
76
<a py:if="'edit' in permissions"
78
href="${req.publisher.generate(context, None, '+projects')}">
83
<div py:if="'edit' in permissions or context.worksheets.count() > 0"
86
<py:choose test="context.worksheets.count()">
88
There are no worksheets for this offering.
89
<a class="addaction" href="${req.publisher.generate(context, None, ('+worksheets', '+new'))}">Create one now</a>
92
<ul id="tutorial-toc">
93
<py:for each="worksheet in worksheets">
95
<!-- Can't generate a URL directly to the worksheet, since this is a fake worksheet. -->
96
<a href="${req.publisher.generate(context)}/+worksheets/${worksheet.name}">${worksheet.name}</a>
97
<py:if test="worksheet.assessable">
99
<li class="${worksheet.complete_class}">
100
Completed ${worksheet.mand_done}/${worksheet.total}${worksheet.optional_message}
107
<py:if test="exercises_total > 0">
109
<li class="${worksheets_complete_class}">
110
Total exercises completed: ${exercises_done}/${exercises_total} (${exercises_pct}%)
114
<span style="font-weight: bold;">Mark:</span> ${worksheet_mark}/${worksheet_max_mark}
117
<a py:if="'edit' in permissions"
119
href="${req.publisher.generate(context, None, ('+worksheets', '+edit'))}">