# config

name: header
value:
  <html>
  <head>
  <base href="$baseurl/$current_page" />
  <title>$<project_name>: $<title></title>
  <link rel="alternate" type="application/rss+xml" title="RSS Feed"
        href="$home/timeline.rss" />
  <link rel="stylesheet" href="$home/style.css?default" type="text/css"
        media="screen" />
  </head>
  <body>
  <div class="header">
    <div class="logo">
      <img src="$home/logo" alt="logo" />
    </div>
    <div class="title"><small>$<project_name></small><br />$<title></div>
    <div class="status"><th1>
       if {[info exists login]} {
         puts "Logged in as $login"
       } else {
         puts "Not logged in"
       }
    </th1></div>
  </div>
  <div class="mainmenu">
  <th1>
  html "<a href='$home$index_page'>Home</a>\n"
  html "<a href='doc/trunk/embedded/www/toc.html'>Documentation</a>\n"
  if {[anycap jor]} {
    html "<a href='timeline'>Timeline</a>\n"
  }
  if {[hascap oh]} {
    html "<a href='dir?ci=tip'>Files</a>\n"
  }
  if {[hascap o]} {
    html "<a href='brlist'>Branches</a>\n"
    html "<a href='taglist'>Tags</a>\n"
  }
  if {[hascap r]} {
    html "<a href='reportlist'>Tickets</a>\n"
  }
  if {[hascap j]} {
    html "<a href='wiki'>Wiki</a>\n"
  }
  if {[hascap s]} {
    html "<a href='setup'>Admin</a>\n"
  } elseif {[hascap a]} {
    html "<a href='setup_ulist'>Users</a>\n"
  }
  if {[info exists login]} {
    html "<a href='login'>Logout</a>\n"
  } else {
    html "<a href='login'>Login</a>\n"
  }
  </th1></div>


# 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


# event

type: ci
user: andreask
comment:
  Reworked the use of the current working directory as medium of communication. Mainly shuffled locations around. Plus new main driver script encapsulating the example


type: ci
user: andreask
comment:
  Saved patch for tclbench which generates a synthetic elapsed time with the effects of auto-scaling compensated for. Modified bench processor to pull and save this synthetic value (microseconds).


