~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>
 
2
      xmlns:xi="http://www.w3.org/2001/XInclude"
 
3
      xmlns:py="http://genshi.edgewall.org/" py:strip="">
 
4
  <head foo="bar" py:strip="">
4
5
    <title>Tutorial - Subject Menu</title>
5
6
  </head>
6
 
  <body>
 
7
  <body class="innerbody" py:strip="">
 
8
  
7
9
    <div id="ivle_padding">
8
10
      <h1>IVLE Tutorials - ${subject}</h1>
9
11
      <h2>Worksheets</h2>
10
12
      <ul id="tutorial-toc">
11
13
        <py:for each="worksheet in worksheets">
12
14
          <li>
13
 
            <!-- XXX: Generate URL properly! -->
14
 
            <a href="/subjects/${subject}/+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}">