Fossil SCM
| 8f34429… | wyoung | 1 | <header> |
| 1adcb8a… | drh | 2 | <div class="status leftoftitle"><th1> |
| 1e815c4… | drh | 3 | if {[info exists login]} { |
| 1adcb8a… | drh | 4 | set logintext "<a href='$home/login'>$login</a>\n" |
| 1e815c4… | drh | 5 | } else { |
| 1adcb8a… | drh | 6 | set logintext "<a href='$home/login'>Login</a>\n" |
| 1e815c4… | drh | 7 | } |
| 1adcb8a… | drh | 8 | html $logintext |
| 1adcb8a… | drh | 9 | </th1></div> |
| 1e815c4… | drh | 10 | <div class="title">$<title></div> |
| 1e815c4… | drh | 11 | <div class="status"><nobr><th1> |
| 8f34429… | wyoung | 12 | html $logintext |
| 8f34429… | wyoung | 13 | </th1></nobr></div> |
| 8f34429… | wyoung | 14 | </header> |
| 8f34429… | wyoung | 15 | <nav class="mainmenu" title="Main Menu"> |
| 8f34429… | wyoung | 16 | <th1> |
| 8f34429… | wyoung | 17 | html "<a id='hbbtn' href='$home/sitemap' aria-label='Site Map'>☰</a>" |
| 8f34429… | wyoung | 18 | builtin_request_js hbmenu.js |
| 8f34429… | wyoung | 19 | foreach {name url expr class} $mainmenu { |
| 8f34429… | wyoung | 20 | if {![capexpr $expr]} continue |
| 8f34429… | wyoung | 21 | if {[string match /* $url]} { |
| 8f34429… | wyoung | 22 | if {[string match $url\[/?#\]* /$current_page/]} { |
| 8f34429… | wyoung | 23 | set class "active $class" |
| 8f34429… | wyoung | 24 | } |
| 8f34429… | wyoung | 25 | set url $home$url |
| 8f34429… | wyoung | 26 | } |
| 8f34429… | wyoung | 27 | html "<a href='$url' class='$class'>$name</a>\n" |
| 8f34429… | wyoung | 28 | } |
| 8f34429… | wyoung | 29 | </th1> |
| 8f34429… | wyoung | 30 | </nav> |
| 8f34429… | wyoung | 31 | <nav id="hbdrop" class='hbdrop' title="sitemap"></nav> |