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