Fossil

Artifact [951f84d1]
Login

Artifact 951f84d12b2d92e64de41d3bc61a504f1c3ea44e10f7cc1aecb5b8f58edacaa1:


     1  <div class="header">
2 <div class="title"><h1>$<project_name></h1>$<title></div>
3 <div class="status"><th1> 4 if {[info exists login]} { 5 html "$login — <a href='$home/login'>Logout</a>\n" 6 } else { 7 html "<a href='$home/login'>Login</a>\n" 8 } 9 </th1></div> 10 </div> 11 <div class="mainmenu"> 12 <th1> 13 proc menulink {url name cls} { 14 upvar current_page current 15 upvar home home 16 if {[string range $url 0 [string length $current]] eq "/$current"} { 17 html "<a href='$home$url' class='active $cls'>$name</a>\n" 18 } else { 19 html "<a href='$home$url' class='$cls'>$name</a>\n" 20 } 21 } 22 html "<a id='hbbtn' href='$home/sitemap'>&#9776;</a>" 23 menulink $index_page Home {} 24 if {[anycap jor]} { 25 menulink /timeline Timeline {} 26 } 27 if {[hascap oh]} { 28 menulink /dir?ci=tip Files desktoponly 29 } 30 if {[hascap o]} { 31 menulink /brlist Branches desktoponly 32 menulink /taglist Tags wideonly 33 } 34 if {[anycap 23456] || [anoncap 2] || [anoncap 3]} { 35 menulink /forum Forum wideonly 36 } 37 if {[hascap r]} { 38 menulink /ticket Tickets wideonly 39 } 40 if {[hascap j]} { 41 menulink /wiki Wiki wideonly 42 } 43 if {[hascap s]} { 44 menulink /setup Admin {} 45 } elseif {[hascap a]} { 46 menulink /setup_ulist Users {} 47 } 48 </th1></div> 49 <div id='hbdrop'></div>