# config

name: css
value:
  /* General settings for the entire page */
  body {
      margin:0px 0px 0px 0px;
      padding:0px;
      font-family:verdana, arial, helvetica, "sans serif";
      color:#333;
      background-color:white;
  }

  /* consistent colours */
  h2 {
    color: #333;
  }
  h3 {
    color: #333;
  }

  /* The project logo in the upper left-hand corner of each page */
  div.logo {
    display: table-cell;
    text-align: left;
    vertical-align: bottom;
    font-weight: bold;
    color: #333;
  }

  /* The page title centered at the top of each page */
  div.title {
    display: table-cell;
    font-size: 2em;
    font-weight: bold;
    text-align: center;
    color: #333;
    vertical-align: bottom;
    width: 100%;
  }

  /* The login status message in the top right-hand corner */
  div.status {
    display: table-cell;
    padding-right: 10px;
    text-align: right;
    vertical-align: bottom;
    padding-bottom: 5px;
    color: #333;
    font-size: 0.8em;
    font-weight: bold;
  }

  /* The header across the top of the page */
  div.header {
      margin:10px 0px 10px 0px;
      padding:1px 0px 0px 20px;
      border-style:solid;
      border-color:black;
      border-width:1px 0px;
      background-color:#eee;
  }

  /* The main menu bar that appears at the top left of the page beneath
  ** the header. Width must be co-ordinated with the container below */
  div.mainmenu {
    float: left;
    margin-left: 10px;
    margin-right: 10px;
    font-size: 0.9em;
    font-weight: bold;
    padding:5px;
    background-color:#eee;
    border:1px solid #999;
    width:8em;
  }

  /* Main menu is now a list */
  div.mainmenu ul {
    padding: 0;
    list-style:none;
  }
  div.mainmenu a, div.mainmenu a:visited{
    padding: 1px 10px 1px 10px;
    color: #333;
    text-decoration: none;
  }
  div.mainmenu a:hover {
    color: #eee;
    background-color: #333;
  }

  /* Container for the sub-menu and content so they don't spread
  ** out underneath the main menu */
  #container {
    padding-left: 9em;
  }

  /* The submenu bar that *sometimes* appears below the main menu */
  div.submenu, div.sectionmenu {
    padding: 3px 10px 3px 10px;
    font-size: 0.9em;
    text-align: center;
    border:1px solid #999;
    border-width:1px 0px;
    background-color: #eee;
    color: #333;
  }
  div.submenu a, div.submenu a:visited, div.sectionmenu>a.button:link,
  div.sectionmenu>a.button:visited {
    padding: 3px 10px 3px 10px;
    color: #333;
    text-decoration: none;
  }
  div.submenu a:hover, div.sectionmenu>a.button:hover {
    color: #eee;
    background-color: #333;
  }

  /* All page content from the bottom of the menu or submenu down to
  ** the footer */
  div.content {
    padding: 2ex 1ex 0ex 2ex;
  }

  /* Some pages have section dividers */
  div.section {
    margin-bottom: 0px;
    margin-top: 1em;
    padding: 1px 1px 1px 1px;
    font-size: 1.2em;
    font-weight: bold;
    border-style:solid;
    border-color:#999;
    border-width:1px 0px;
    background-color: #eee;
    color: #333;
  }

  /* The "Date" that occurs on the left hand side of timelines */
  div.divider {
    background: #eee;
    border: 2px #999 solid;
    font-size: 1em; font-weight: normal;
    padding: .25em;
    margin: .2em 0 .2em 0;
    float: left;
    clear: left;
    color: #333
  }

  /* The footer at the very bottom of the page */
  div.footer {
    font-size: 0.8em;
    margin-top: 12px;
    padding: 5px 10px 5px 10px;
    text-align: right;
    background-color: #eee;
    color: #555;
  }

  /* <verbatim> blocks */
  pre.verbatim {
     background-color: #f5f5f5;
     padding: 0.5em;
  }

  /* The label/value pairs on (for example) the ci page */
  table.label-value th {
    vertical-align: top;
    text-align: right;
    padding: 0.2ex 2ex;
  }


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?black2" type="text/css"
        media="screen">
  </head>
  <body>
  <div class="header">
    <div class="logo">
      <img src="$home/logo" alt="logo">
    </div>
    <div class="title">$<title></div>
    <div class="status"><nobr><th1>
       if {[info exists login]} {
         puts "Logged in as $login"
       } else {
         puts "Not logged in"
       }
    </th1></nobr></div>
  </div>
  <div class="mainmenu">
  <th1>
  html "<a href='$home$index_page'>Home</a>\n"
  if {[anycap jor]} {
    html "<a href='$home/timeline'>Timeline</a>\n"
  }
  if {[hascap oh]} {
    html "<a href='$home/dir?ci=tip'>Files</a>\n"
  }
  if {[hascap o]} {
    html "<a href='$home/brlist'>Branches</a>\n"
    html "<a href='$home/taglist'>Tags</a>\n"
  }
  if {[hascap r]} {
    html "<a href='$home/reportlist'>Tickets</a>\n"
  }
  if {[hascap j]} {
    html "<a href='$home/wiki'>Wiki</a>\n"
  }
  if {[hascap s]} {
    html "<a href='$home/setup'>Admin</a>\n"
  } elseif {[hascap a]} {
    html "<a href='$home/setup_ulist'>Users</a>\n"
  }
  if {[info exists login]} {
    html "<a href='$home/login'>Logout</a>\n"
  } else {
    html "<a href='$home/login'>Login</a>\n"
  }
  </th1></ul></div>
  <div id="container">


# 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: aku
comment:
  Separated expressions from operators, with expression handling having a general implementation using operator specific methods/callbacks.


type: ci
user: andreask
comment:
  pt::operator : Activated operator testsuite, first tests. Got old expression tests, inactive for the moment.


