source: trunk/packages/sipb-xen-www/code/templates/help.tmpl @ 422

Last change on this file since 422 was 422, checked in by price, 17 years ago

more and better titles

  • Title with <h1> on VM list
  • append 'SIPB Virtual Servers' to each title
  • only write title once per page
File size: 518 bytes
RevLine 
[139]1#from skeleton import skeleton
2#extends skeleton
3
4#def title
[187]5#if len($subjects) == 1
6Help on $subjects[0]
7#else
[139]8Help
[187]9#end if
[139]10#end def
11
12
13#def body
14#if not $simple
[187]15<p>Topics:
16#for $key in sorted($mapping)
17<a href="help?subject=$key">$key</a>
18#end for
19</p>
[139]20#end if
21#for $subject in $subjects
[187]22#if $subject in $mapping
23#if not $simple
24<h2>$subject</h2>
25#end if
[139]26<p>$mapping[$subject]</p>
[187]27#else
28<p>Unknown subject '$subject'.</p>
29#end if
[139]30#end for
[187]31#if $simple
32<a href="javascript:window.close();">Close</a>
33#end if
[139]34#end def
Note: See TracBrowser for help on using the repository browser.