You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

header.html 2.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <html>
  2. <head>
  3. <meta charset="UTF-8" />
  4. <meta name="viewport" content="width=700, initial-scale=1" />
  5. <base href="$baseurl/$current_page" />
  6. <title>
  7. <th1>
  8. if {$title eq $project_name} {
  9. html "$project_name: Home"
  10. } else {
  11. html "$project_name: $title"
  12. }
  13. </th1>
  14. </title>
  15. <link rel="alternate" type="application/rss+xml" title="RSS Feed" href="$home/timeline.rss" />
  16. <link rel="stylesheet" href="$stylesheet_url" type="text/css" media="screen" />
  17. </head>
  18. <body>
  19. <div class="header">
  20. <div class="container">
  21. <div class="login pull-right">
  22. <th1>
  23. if {[info exists login]} {
  24. html "<b>$login</b> — <a class='button' href='$home/login'>Logout</a>\n"
  25. } else {
  26. html "<a class='button' href='$home/login'>Login</a>\n"
  27. }
  28. </th1>
  29. </div>
  30. <div class='title'>
  31. <h1>$<project_name>
  32. <th1>
  33. if {[anycap jor]} {
  34. html "<a class='rss' href='$home/timeline.rss'></a>"
  35. }
  36. if {$title eq $project_name} {
  37. html "</h1>"
  38. } else {
  39. html "<small> &nbsp;$title</small></h1>"
  40. }
  41. </th1>
  42. </div>
  43. <!-- Main Menu -->
  44. <div class="mainmenu">
  45. <ul>
  46. <th1>
  47. proc menulink {url name} {
  48. upvar current_page current
  49. upvar home home
  50. if {[string range $url 0 [string length $current]] eq "/$current"} {
  51. html "<li class='active'>"
  52. } else {
  53. html "<li>"
  54. }
  55. html "<a href='$home$url'>$name</a></li>\n"
  56. }
  57. menulink $index_page Home
  58. if {[anycap jor]} {
  59. menulink /timeline Timeline
  60. }
  61. if {[hascap oh]} {
  62. menulink /dir?ci=tip Files
  63. }
  64. if {[hascap o]} {
  65. menulink /brlist Branches
  66. menulink /taglist Tags
  67. }
  68. if {[hascap r]} {
  69. menulink /ticket Tickets
  70. }
  71. if {[hascap j]} {
  72. menulink /wiki Wiki
  73. }
  74. if {[hascap o]} {
  75. menulink /help Help
  76. }
  77. if {[hascap s]} {
  78. menulink /setup Admin
  79. } elseif {[hascap a]} {
  80. menulink /setup_ulist Users
  81. }
  82. </th1>
  83. </ul>
  84. </div> <!-- end div mainmenu -->
  85. </div> <!-- end div container -->
  86. </div> <!-- end div header -->
  87. <div class="middle max-full-width">
  88. <div class="container">