changeset 558:1a4541c87021

Show table of contents in build recipe view (eblot) - fixes #394
author dfraser
date Mon, 11 May 2009 09:35:00 +0000
parents b4d3d9cbf200
children bf3e0c2f6b80
files bitten/htdocs/bitten.css bitten/templates/bitten_build.html
diffstat 2 files changed, 20 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/bitten/htdocs/bitten.css
+++ b/bitten/htdocs/bitten.css
@@ -194,3 +194,17 @@
 #mainnav .bittenpending, #mainnav .bittenpending :hover {
   border-right: 4px hidden !important;
 }
+.step-toc {
+ padding: .5em 1em;
+ margin: 1em 3em 2em 1em;
+ float: right;
+ border: 1px outset #ddc;
+ background: #ffd;
+ font-size: 85%;
+ position: relative;
+}
+.step-toc h4 { font-size: 12px; margin: 0 }
+.step-toc ul, .step-toc ol { list-style: none; padding: 0 0 0 1.2em; margin: 0 }
+.step-toc li { margin: 0; padding: 0 }
+.step-toc .active { background: #ff9; position: relative; }
+.step-toc li.failed a { color: #a00; font-weight: bold; }
\ No newline at end of file
--- a/bitten/templates/bitten_build.html
+++ b/bitten/templates/bitten_build.html
@@ -11,6 +11,12 @@
   <body>
     <div id="content" class="build">
       <h1>$title</h1>
+      <div class="step-toc"><h4 id="step-toc-qj">Build steps</h4><ol>
+          <py:for each="step in build.steps">
+          <li class="${step.failed and 'failed' or 'success'}"><a 
+              href="#step_${step.name}">$step.name</a></li>
+          </py:for></ol>
+      </div>
       <dl id="overview" py:with="slave = build.slave">
         <dt class="config">Configuration:</dt>
         <dd class="config">
Copyright (C) 2012-2017 Edgewall Software