# config

name: header
value:
  <div class="header">
    <div class="container">
      <div class="login pull-right">
        <th1>
          if {[info exists login]} {
            html "<b>$login</b> — <a class='button' href='$home/login'>Logout</a>\n"
          } else {
            html "<a class='button' href='$home/login'>Login</a>\n"
          }
        </th1>
      </div>
      <div class='title'>
        <h1>$<project_name>
        <th1>
        if {[anycap jor]} {
          html "<a class='rss' href='$home/timeline.rss'></a>"
        }
        </th1>
        <small> &nbsp;$<title></small></h1>
      </div>

      <!-- Main Menu -->
      <div class="mainmenu">
        <ul>
          <th1>
  proc menulink {url name} {
    upvar current_page current
    upvar home home
    if {[string range $url 0 [string length $current]] eq "/$current"} {
      html "<li class='active'>"
    } else {
      html "<li>"
    }
    html "<a href='$home$url'>$name</a></li>\n"
  }
  menulink $index_page Home
  if {[anycap jor]} {
    menulink /timeline Timeline
  }
  if {[hascap oh]} {
    menulink /dir?ci=tip Files
  }
  if {[hascap o]} {
    menulink  /brlist Branches
    menulink  /taglist Tags
  }
  if {[anycap 23456] || [anoncap 2] || [anoncap 3]} {
    menulink /forum Forum
  }
  if {[hascap r]} {
    menulink /ticket Tickets
  }
  if {[hascap j]} {
    menulink /wiki Wiki
  }
  if {[hascap o]} {
    menulink /help Help
    }
  if {[hascap s]} {
    menulink /setup Admin
  } elseif {[hascap a]} {
    menulink /setup_ulist Users
  }
              </th1>
            </ul>
          </div> <!-- end div mainmenu -->
        </div> <!-- end div container -->
      </div> <!-- end div header -->
      <div class="middle max-full-width">
        <div class="container">
          <th1>
            if {[string first artifact $current_page] == 0 || [string first hexdump $current_page] == 0} {
              html "<div class=\"artifact_content\">"
            }
          </th1>


name: footer
value:
    <th1>
      if {[string first artifact $current_page] == 0 || [string first hexdump $current_page] == 0} {
        html "</div>"
      }
    </th1>
    </div> <!-- end div container -->
  </div> <!-- end div middle max-full-width -->
  <div class="footer">
    <div class="container">
      <div class="pull-right">
        <a href="https://www.fossil-scm.org/">Fossil $release_version $manifest_version $manifest_date</a>
      </div>
      This page was generated in about <th1>puts [expr {([utime]+[stime]+1000)/1000*0.001}]</th1>s
    </div>
  </div>


name: details
value:
  timeline-arrowheads:        0
  timeline-circle-nodes:      1
  timeline-color-graph-lines: 1
  white-foreground:           1


name: mainmenu
value:
  Home      /home        *              {}
  Timeline  /timeline    {o r j}        {}
  Files     /dir?ci=tip  oh             desktoponly
  Branches  /brlist      o              wideonly
  Tags      /taglist     o              wideonly
  Forum     /forum       {@2 3 4 5 6}   wideonly
  Chat      /chat        C              wideonly
  Tickets   /ticket      r              wideonly
  Wiki      /wiki        j              wideonly
  Admin     /setup       {a s}          desktoponly
  Logout    /logout      L              wideonly
  Login     /login       !L             wideonly


# reportfmt

title: All Tickets
cols:
  #ffffff Key:
  #f2dcdc Active
  #e8e8e8 Review
  #cfe8bd Fixed
  #bde5d6 Tested
  #cacae5 Deferred
  #c8c8c8 Closed

sqlcode:
  SELECT
    CASE WHEN status IN ('Open','Verified') THEN '#f2dcdc'
         WHEN status='Review' THEN '#e8e8e8'
         WHEN status='Fixed' THEN '#cfe8bd'
         WHEN status='Tested' THEN '#bde5d6'
         WHEN status='Deferred' THEN '#cacae5'
         ELSE '#c8c8c8' END AS 'bgcolor',
    substr(tkt_uuid,1,10) AS '#',
    datetime(tkt_mtime) AS 'mtime',
    type,
    status,
    subsystem,
    title
  FROM ticket


