| Line | |
|---|
| 1 | #from skeleton import skeleton |
|---|
| 2 | #extends skeleton |
|---|
| 3 | |
|---|
| 4 | #attr pageclass = 'help' |
|---|
| 5 | |
|---|
| 6 | #def title |
|---|
| 7 | #if len($subjects) == 1 |
|---|
| 8 | Help on $subjects[0] |
|---|
| 9 | #else |
|---|
| 10 | Help |
|---|
| 11 | #end if |
|---|
| 12 | #end def |
|---|
| 13 | |
|---|
| 14 | |
|---|
| 15 | #def body |
|---|
| 16 | #if not $simple |
|---|
| 17 | <p>Topics: |
|---|
| 18 | #for $key in sorted($mapping) |
|---|
| 19 | <a href="help?subject=$key">$key</a> |
|---|
| 20 | #end for |
|---|
| 21 | </p> |
|---|
| 22 | <p> |
|---|
| 23 | See also <a href="trac/wiki/tips">tips and HOWTOs on the wiki</a>. |
|---|
| 24 | </p> |
|---|
| 25 | #end if |
|---|
| 26 | #for $subject in $subjects |
|---|
| 27 | #if $subject in $mapping |
|---|
| 28 | <h2>$subject</h2> |
|---|
| 29 | #filter None |
|---|
| 30 | <p>$mapping[$subject]</p> |
|---|
| 31 | #end filter |
|---|
| 32 | #else |
|---|
| 33 | <p>Unknown subject '$subject'.</p> |
|---|
| 34 | #end if |
|---|
| 35 | #end for |
|---|
| 36 | #if $simple |
|---|
| 37 | <a href="javascript:window.close();">Close</a> |
|---|
| 38 | #end if |
|---|
| 39 | #end def |
|---|
Note: See
TracBrowser
for help on using the repository browser.