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

« back to all changes in this revision

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

  • Committer: David Coles
  • Date: 2010-07-29 10:51:30 UTC
  • Revision ID: coles.david@gmail.com-20100729105130-el3ut0zwisvgvthu
Fix issue with CodeMirror being wider than the screen and scrolling.

Seems like width: 100% + padding/margin causes the actual width to be more 
than 100%. Though if the CodeMirror element just auto-calculate the width it's 
fine. Also fixed similar issue with the <textbox>.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<html xmlns="http://www.w3.org/1999/xhtml"
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>
6
 
  </head>
7
 
  <body class="innerbody" py:strip="">
8
 
  
9
 
    <div id="ivle_padding">
10
 
      <h1>IVLE Tutorials - ${subject}</h1>
11
 
      <h2>Worksheets</h2>
12
 
      <ul id="tutorial-toc">
13
 
        <py:for each="worksheet in worksheets">
14
 
          <li>
15
 
            <a href="${worksheet.loc}">${worksheet.name}</a>
16
 
            <py:if test="worksheet.assessable">
17
 
              <ul>
18
 
                <li class="${worksheet.complete_class}">
19
 
                  Completed ${worksheet.mand_done}/${worksheet.total}${worksheet.optional_message}
20
 
                </li>
21
 
              </ul>
22
 
            </py:if>
23
 
          </li>
24
 
        </py:for>
25
 
      </ul>
26
 
      <py:if test="problems_total > 0">
27
 
        <ul>
28
 
          <li class="${complete_class}">
29
 
            Total exercises completed: ${problems_done}/${problems_total} (${problems_pct}%)
30
 
          </li>
31
 
        </ul> 
32
 
        <p style="font-weight: bold">
33
 
          Worksheet mark: ${mark}/${max_mark}
34
 
        </p>
35
 
      </py:if>
36
 
    </div>            
37
 
  </body>
38
 
</html>