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="context.description" style="margin-bottom: 1em;">
18
<div style="margin-bottom: 0.5em;">${context.description}</div>
19
<a py:if="context.url" class="webaction" href="${context.url}">Home page</a>
22
<div py:if="'edit' in permissions or context.projects.count() > 0"
25
<py:choose test="context.projects.count()">
27
There are no projects for this offering.
30
<ul class="paddedlist">
31
<li py:for="project in context.projects"
32
py:attrs="{'class': 'project closed'}
33
if project.has_deadline_passed(req.user)
34
else {'class': 'project'}"
35
py:with="principal = project.project_set.get_submission_principal(req.user)">
36
<a href="${project.url}">${project.name}</a> –
37
<span py:content="format_submission_principal(req.user, principal)" /> –
38
<span title="${format_datetime(project.deadline)}">
39
${'closed' if project.has_deadline_passed(req.user) else 'due'} ${format_datetime_short(project.deadline)}
41
<py:if test="principal is not None"
42
py:with="submissions = project.get_submissions_for_principal(principal)">
44
<py:choose test="submissions.count()">
49
py:with="latest = submissions.last()"
50
title="${format_datetime(latest.date_submitted)}">
51
last submitted ${format_datetime_short(latest.date_submitted)}
59
<py:if test="context.get_open_projects_for_user(req.user).count() > 0">
61
To submit to a project that has not yet closed, use the file
62
browser to navigate to the file or directory that you wish to
63
submit, click “More actions...”,
64
“Submit”, and then select the correct project.
67
If the project to which you intend to submit is not listed,
68
ensure that you are in the correct directory, or a subdirectory
69
thereof. For solo projects, you must be inside the subject's
70
“mywork” directory. For group projects, you must be
71
inside the directory for the assigned group.
74
You may resubmit a project as you wish until the deadline, but
75
a new submission will overwrite any made earlier.
81
<a py:if="'edit' in permissions"
83
href="${req.publisher.generate(context, None, '+projects')}">
88
<div py:if="'edit' in permissions or context.worksheets.count() > 0"
91
<py:choose test="context.worksheets.count()">
93
There are no worksheets for this offering.
94
<a class="addaction" href="${req.publisher.generate(context, None, ('+worksheets', '+new'))}">Create one now</a>
97
<ul id="tutorial-toc">
98
<py:for each="worksheet in worksheets">
100
<!-- Can't generate a URL directly to the worksheet, since this is a fake worksheet. -->
101
<a href="${req.publisher.generate(context)}/+worksheets/${worksheet.name}">${worksheet.name}</a>
102
<py:if test="worksheet.assessable">
104
<li class="${worksheet.complete_class}">
105
Completed ${worksheet.mand_done}/${worksheet.total}${worksheet.optional_message}
112
<py:if test="exercises_total > 0">
114
<li class="${worksheets_complete_class}">
115
Total exercises completed: ${exercises_done}/${exercises_total} (${exercises_pct}%)
119
<span style="font-weight: bold;">Mark:</span> ${worksheet_mark}/${worksheet_max_mark}
122
<a py:if="'edit' in permissions"
124
href="${req.publisher.generate(context, None, ('+worksheets', '+edit'))}">