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

« back to all changes in this revision

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

ivle.webapp.testing: Add, with fake request and user.
ivle.webapp.base.test: Add! Test the JSONRESTView, using the new mocks.

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.id}">${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>