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

« back to all changes in this revision

Viewing changes to www/apps/tutorial/subjectmenu.html

  • Committer: me at id
  • Date: 2009-02-02 04:42:36 UTC
  • Revision ID: svn-v4:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:1190
www/apps/userservice#get_user: Fix fallout from the Storm migration.
    ivle.auth.authenticate.authenticate now wants a store, so we give it one.
    We also perform the old password check before we set attributes on the
    user, as otherwise the new password will always succeed (as the hash has
    already been updated).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<html xmlns="http://www.w3.org/1999/xhtml"
2
 
      xmlns:py="http://genshi.edgewall.org/">
3
 
  <head>
4
 
    <title>Worksheets - ${subject.name}</title>
 
2
      xmlns:xi="http://www.w3.org/2001/XInclude"
 
3
      xmlns:py="http://genshi.edgewall.org/" py:strip="">
 
4
  <head foo="bar" py:strip="">
 
5
    <title>Tutorial - Subject Menu</title>
5
6
  </head>
6
 
  <body>
7
 
    <py:def function="offering_url(offering)">/subjects/${offering.subject.short_name}/${offering.semester.year}/${offering.semester.semester}</py:def>
8
 
    <h1>Worksheets for ${subject.name}</h1>
 
7
  <body class="innerbody" py:strip="">
 
8
  
9
9
    <div id="ivle_padding">
10
 
      <p py:if="len(worksheets) == 0">There are not currently any worksheets for this subject.</p>
 
10
      <h1>IVLE Tutorials - ${subject}</h1>
 
11
      <h2>Worksheets</h2>
11
12
      <ul id="tutorial-toc">
12
13
        <py:for each="worksheet in worksheets">
13
14
          <li>
14
 
            <a href="${offering_url(offering)}/+worksheets/${worksheet.id}">${worksheet.name}</a>
 
15
            <a href="${worksheet.loc}">${worksheet.name}</a>
15
16
            <py:if test="worksheet.assessable">
16
17
              <ul>
17
18
                <li class="${worksheet.complete_class}">
32
33
          Worksheet mark: ${mark}/${max_mark}
33
34
        </p>
34
35
      </py:if>
35
 
      <py:if test="'edit' in offering.get_permissions(user)">
36
 
        <p><a href="${offering_url(offering)}/+worksheets/+edit">Edit worksheets</a></p>
37
 
      </py:if>
38
36
    </div>            
39
37
  </body>
40
38
</html>