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

« back to all changes in this revision

Viewing changes to ivle/webapp/help/toc.html

Remove www/apps/help. Replaced by ivle.webapp.help.

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>Help</title>
 
4
    <title>Help Table of Contents</title>
5
5
  </head>
6
6
  <body>
7
 
    <h1>Help</h1>
8
7
    <div id="ivle_padding">
9
 
      <py:def function="show_toc(helptree)">
10
 
        <py:for each="item in helptree.values()">
11
 
          <py:if test="isinstance(item, HelpTree)">
12
 
            <li><strong>${item.name}</strong>
13
 
              <ul>
14
 
                ${show_toc(item)}
15
 
              </ul>
16
 
            </li>
 
8
      <h1>Help</h1>
 
9
      <py:def function="show_toc(toc_part, path)">
 
10
        <py:for each="part in toc_part">
 
11
          <py:if test="isinstance(toc_part[part], dict)">
 
12
            <li><strong>${part}</strong></li>
 
13
            <ul>
 
14
              ${show_toc(toc_part[part], path + '/' + part)}
 
15
            </ul>
17
16
          </py:if>
18
 
          <py:if test="isinstance(item, HelpEntry)">
19
 
            <li><a href="${req.publisher.generate(item)}">${item.name}</a></li>
 
17
          <py:if test="isinstance(toc_part[part], basestring)">
 
18
            <li><a href="${path + '/' + part}">${part}</a></li>
20
19
          </py:if>
21
20
        </py:for>
22
21
      </py:def>
23
22
      <ul>
24
 
        ${show_toc(context)}
25
 
        <li><a href="/+tos">Terms of Service</a></li>
 
23
        ${show_toc(toc, '/+help')}
26
24
      </ul>
 
25
      <a href="tos">Terms of Service</a>
27
26
    </div>
28
27
  </body>
29
28
</html>