Fossil SCM

fossil-scm / skins / blitz / header.txt
Blame History Raw 49 lines
1
<header>
2
<div class="container">
3
4
<!-- Header -->
5
<div class="login pull-right">
6
<th1>
7
if {[info exists login]} {
8
html "<b>$login</b> — <a class='button' href='$home/login'>Logout</a>\n"
9
} else {
10
html "<a class='button' href='$home/login'>Login</a>\n"
11
}
12
</th1>
13
</div>
14
<div class='logo'>
15
<h1>$<project_name>
16
<th1>
17
if {[anycap jor]} {
18
html "<a class='rss' href='$home/timeline.rss'></a>"
19
}
20
</th1>
21
<small> &nbsp;$<title></small></h1>
22
</div>
23
24
<!-- Main Menu -->
25
<nav class="mainmenu" title="Main Menu">
26
<ul>
27
<th1>
28
html "<li><a id='hbbtn' href='$home/sitemap' aria-label='Site Map'>&#9776;</a></li>\n"
29
builtin_request_js hbmenu.js
30
set once 1
31
foreach {name url expr class} $mainmenu {
32
if {![capexpr $expr]} continue
33
if {$once && [string match $url\[/?#\]* /$current_page/]} {
34
set class "active $class"
35
set once 0
36
}
37
html "<li class='$class'>"
38
if {[string match /* $url]} {set url $home$url}
39
html "<a href='$url'>$name</a></li>\n"
40
}
41
</th1>
42
</ul>
43
</nav>
44
<nav id="hbdrop" class='hbdrop' title="sitemap"></nav>
45
</div> <!-- end div container -->
46
</header>
47
<div class="middle max-full-width">
48
<div class="container">
49

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button