|
Last change
on this file since 279 was
187,
checked in by ecprice, 18 years ago
|
|
Help, admin, links at the top.
|
|
File size:
532 bytes
|
| Rev | Line | |
|---|
| [139] | 1 | #from skeleton import skeleton |
|---|
| 2 | #extends skeleton |
|---|
| 3 | |
|---|
| 4 | #def title |
|---|
| [187] | 5 | #if len($subjects) == 1 |
|---|
| 6 | Help on $subjects[0] |
|---|
| 7 | #else |
|---|
| [139] | 8 | Help |
|---|
| [187] | 9 | #end if |
|---|
| [139] | 10 | #end def |
|---|
| 11 | |
|---|
| 12 | |
|---|
| 13 | #def body |
|---|
| 14 | #if not $simple |
|---|
| 15 | <h1>Help</h1> |
|---|
| [187] | 16 | <p>Topics: |
|---|
| 17 | #for $key in sorted($mapping) |
|---|
| 18 | <a href="help?subject=$key">$key</a> |
|---|
| 19 | #end for |
|---|
| 20 | </p> |
|---|
| [139] | 21 | #end if |
|---|
| 22 | #for $subject in $subjects |
|---|
| [187] | 23 | #if $subject in $mapping |
|---|
| 24 | #if not $simple |
|---|
| 25 | <h2>$subject</h2> |
|---|
| 26 | #end if |
|---|
| [139] | 27 | <p>$mapping[$subject]</p> |
|---|
| [187] | 28 | #else |
|---|
| 29 | <p>Unknown subject '$subject'.</p> |
|---|
| 30 | #end if |
|---|
| [139] | 31 | #end for |
|---|
| [187] | 32 | #if $simple |
|---|
| 33 | <a href="javascript:window.close();">Close</a> |
|---|
| 34 | #end if |
|---|
| [139] | 35 | #end def |
|---|
Note: See
TracBrowser
for help on using the repository browser.