~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to ivle/webapp/admin/templates/offering.html

  • Committer: William Grant
  • Date: 2010-07-28 04:13:05 UTC
  • mfrom: (1801.1.2 die-cjson-die)
  • Revision ID: grantw@unimelb.edu.au-20100728041305-xwypm3cn1l1mnki1
Port from cjson to (simple)json.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<html xmlns="http://www.w3.org/1999/xhtml"
2
2
      xmlns:py="http://genshi.edgewall.org/">
3
3
  <head>
4
 
    <title>${context.subject.name} (${context.semester.year} semester ${context.semester.semester})</title>
 
4
    <title>${context.subject.name} (${context.semester.year} ${context.semester.display_name})</title>
5
5
  </head>
6
6
  <body>
7
7
    <h1>${context.subject.name}</h1>
125
125
                <span style="font-weight: bold;">Mark:</span> ${worksheet_mark}/${worksheet_max_mark}
126
126
              </p>
127
127
            </py:if>
 
128
            <span py:if="context.worksheet_cutoff is not None"
 
129
              title="${'Closed' if context.has_worksheet_cutoff_passed(req.user) else 'Due'}: ${format_datetime(context.worksheet_cutoff)}">
 
130
              Worksheet submissions ${'closed' if context.has_worksheet_cutoff_passed(req.user) else 'are due'} ${format_datetime_short(context.worksheet_cutoff)}.
 
131
              <br />
 
132
              <py:choose test="context.has_worksheet_cutoff_passed(req.user)">
 
133
              <py:when test="True">You can still submit, but it will not count towards your mark.</py:when>
 
134
              <py:when test="False">After this time, you can still submit, but it will not count towards your mark.</py:when>
 
135
              </py:choose>
 
136
            </span>
128
137
            <div class="horizontalactions" py:if="'edit_worksheets' in permissions">
129
138
              <a class="manageaction" href="${req.publisher.generate(context, None, ('+worksheets', '+edit'))}"> Manage worksheets</a>
130
139
              <a class="manageaction" href="/+exercises">Manage exercises</a>